void (@NotNull AnActionEvent e) { Project project = e.getRequiredData(CommonDataKeys.PROJECT); VcsLogCommitSelection selection = e.getRequiredData(VcsLogDataKeys.VCS_LOG_COMMIT_SELECTION); CommitId commit = ContainerUtil.getFirstItem(selection.getCommits()); assert commit != null; Repo repository = getRepositoryForRoot(project, commit.getRoot()); assert repository != null; actionPerformed(repository, commit.getHash()); }