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