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

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