@Override
  public void actionPerformed(@NotNull AnActionEvent e) {
    Project project = Objects.requireNonNull(e.getProject());
    Document document = e.getData(VcsDataKeys.COMMIT_MESSAGE_DOCUMENT);
    if (document == null) return;

    CommandProcessor.getInstance().executeCommand(project, () ->
      WriteAction.run(() -> reformat(project, document)), VcsBundle.message("commit.message.intention.family.name.reformat.commit.message"), null);
  }
@Override
  public void actionPerformed(@NotNull AnActionEvent e)