@Override
  public void update(@NotNull AnActionEvent e) {
    Presentation presentation = e.getPresentation();
    if (e.getProject() == null) {
      presentation.setEnabled(false);
      return;
    }

    String text = ActionsBundle.message(DistractionFreeModeController.isDistractionFreeModeEnabled() ?
                                        "action.ToggleDistractionFreeMode.exit" :
                                        "action.ToggleDistractionFreeMode.enter");
    presentation.setText(text);
  }
@Override
  public void update(@NotNull AnActionEvent e)