@Override
  public void update(@NotNull AnActionEvent e) {
    Project project = e.getProject();
    if (project == null) {
      e.getPresentation().setEnabledAndVisible(false);
      return;
    }
    AbstractProjectViewPane pane = ProjectView.getInstance(project).getCurrentProjectViewPane();
    boolean enabled = ActionPlaces.isMainMenuOrActionSearch(e.getPlace())
                      || pane == null || ProjectViewPane.ID.equals(pane.getId());
    e.getPresentation().setEnabledAndVisible(enabled);
  }
@Override
  public void update(@NotNull AnActionEvent e)