@Override
  public void update(@NotNull AnActionEvent e) {
    String[] subjects = e.getData(VcsDataKeys.VCS_COMMIT_SUBJECTS);
    e.getPresentation().setEnabled(subjects != null && subjects.length > 0);
  }
@Override
  public void update(@NotNull AnActionEvent e)