void (@NotNull AnActionEvent event, boolean state) { UISettings uiSettings = UISettings.getInstance(); if (ExperimentalUI.isNewUI()) { uiSettings.setShowNewMainToolbar(state); if (SystemInfo.isMac) { MacFullScreenControlsManager.INSTANCE.updateForNewMainToolbar(state); } } else { uiSettings.setShowMainToolbar(state); } uiSettings.fireUISettingsChanged(); }