@Override
  public void setSelected(@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();
  }
@Override
  public void setSelected(@NotNull AnActionEvent event, boolean state)