Custom foldout wrapper

Creating a custom inspector to foldout my events, I was wondering if there might be some way of creating a DecoratorDrawer combination or something like this to allow peope to wrap their fields easily into foldouts ?

Proto code:

[BeginFoldoutGroup("Events")]
[SerializeField] private UnityEvent _onDialogStarts;
[EndFoldoutGroup("Events")]

Expected result:
8395110--1108026--upload_2022-8-27_11-45-11.png

Unity 2020.3

You can’t put attributes ‘after’ members of a class, as attributes are meta data attached to objects.

You can certainly use attributes to create drawers like. How… I don’t actually know so I’m not much help there. But addons like OdinInspector work like this. The attributes only go ‘on’ members, and not after them, of course.