private void AddProfile()
        {
            profilesProperty.InsertArrayElementAtIndex(profilesProperty.arraySize);
            SerializedProperty newProfile = profilesProperty.GetArrayElementAtIndex(profilesProperty.arraySize - 1);

            var theme = newProfile.FindPropertyRelative("Theme");

            theme.objectReferenceValue = null;

            listSettings = InspectorUIUtility.AdjustListSettings(null, profilesProperty.arraySize);
        }
        protected virtual void OnEnable()
        {
            instance  = (Interactable)target;
            eventList = instance.Events;

            profileList  = serializedObject.FindProperty("Profiles");
            listSettings = InspectorUIUtility.AdjustListSettings(null, profileList.arraySize);
            showProfiles = EditorPrefs.GetBool(ShowProfilesPrefKey, showProfiles);

            SetupEventOptions();
            SetupThemeOptions();

            enabled = true;
        }
 protected virtual void OnEnable()
 {
     profilesProperty = serializedObject.FindProperty("Profiles");
     listSettings     = InspectorUIUtility.AdjustListSettings(null, profilesProperty.arraySize);
 }