private static void OnPlayModeStateChanged(PlayModeStateChange playModeState)
        {
            if (RefactorModeTools.IsRefactorModeEnabled() &&
                playModeState == PlayModeStateChange.ExitingEditMode)
            {
                var disableRefactorMode = EditorUtility.DisplayDialog(
                    title: REFACTOR_MODE_TITLE,
                    message: REFACTOR_MODE_MSG,
                    ok: REFACTOR_MODE_OK_TEXT,
                    cancel: REFACTOR_MODE_CANCEL_TEXT);

                if (disableRefactorMode)
                {
                    EditorApplication.ExitPlaymode();
                    RefactorModeTools.DisableRefactorMode();
                }
                else
                {
                    Debug.LogWarning(REFACTOR_MODE_MSG_WARNING);
                }
            }
        }
 internal static void DisableRefactorMode()
 {
     RefactorModeTools.DisableRefactorMode();
 }
 internal static void EnableRefactorMode()
 {
     RefactorModeTools.EnableRefactorMode();
 }