void (@NotNull AnActionEvent e) { Project project = Objects.requireNonNull(e.getProject()); Document document = e.getRequiredData(VcsDataKeys.COMMIT_MESSAGE_DOCUMENT); CommandProcessor.getInstance().executeCommand(project, () -> WriteAction.run(() -> reformat(project, document)), VcsBundle.message("commit.message.intention.family.name.reformat.commit.message"), null); }