@Override
  public void update(@NotNull AnActionEvent e) {
    Project project = e.getData(CommonDataKeys.PROJECT);

    boolean enabled = isEnabled(project);

    Presentation presentation = e.getPresentation();
    presentation.setEnabledAndVisible(enabled);
  }
@Override
  public void update(@NotNull AnActionEvent e)