@Override
  public void update(@NotNull AnActionEvent e) {
    Presentation presentation = e.getPresentation();
    presentation.setEnabled(e.getProject() != null && e.getData(CommonDataKeys.EDITOR) != null);
  }
@Override
  public void update(@NotNull AnActionEvent e)