@Override
  public void update(@NotNull AnActionEvent e) {
    Presentation presentation = e.getPresentation();
    if (e.getProject() == null || !RunConfigurationsComboBoxAction.hasRunCurrentFileItem(e.getProject())) {
      presentation.setEnabledAndVisible(false);
      return;
    }

    super.update(e);

    // no need in a list of disabled actions in the secondary menu
    // of the 'Current File' item in the combo box drop-down menu
    if (!presentation.isEnabled() &&
        presentation.getClientProperty(WOULD_BE_ENABLED_BUT_STARTING) != Boolean.TRUE) {
      presentation.setVisible(false);
    }
  }
@Override
  public void update(@NotNull AnActionEvent e)