#pragma warning disable IDE0051
        private static string[] OnWillSaveAssets(string[] paths)
        {
            if (!EditorApplication.isPlayingOrWillChangePlaymode)
            {
                EditorSettingsManager.SaveCachedSettings();
            }

            return(paths);
        }
        private static void OnPlayModeStateChanged(PlayModeStateChange state)
        {
            switch (state)
            {
            case PlayModeStateChange.ExitingEditMode:
                EditorSettingsManager.SaveCachedSettings();
                SettingsManager.SettingsCache.Clear();
                break;

            case PlayModeStateChange.EnteredEditMode:
                SettingsManager.SettingsCache.Clear();
                break;
            }
        }