@Override
  public void update(@NotNull AnActionEvent event) {
    super.update(event);
    boolean enabled = isEnabled(event);
    event.getPresentation().setEnabledAndVisible(enabled);
  }
@Override
  public void update(@NotNull AnActionEvent event)