void (@NotNull AnActionEvent e) { VcsLogUsageTriggerCollector.triggerUsage(e, this); Project project = e.getRequiredData(CommonDataKeys.PROJECT); FileHistoryUi ui = e.getRequiredData(VcsLogInternalDataKeys.FILE_HISTORY_UI); List<CommitId> commits = ui.getTable().getSelection().getCommits(); if (commits.size() != 1) return; CommitId commit = Objects.requireNonNull(getFirstItem(commits)); List<Integer> commitIndex = Ints.asList(ui.getLogData().getCommitIndex(commit.getHash(), commit.getRoot())); getDetailsGetter(ui).loadCommitsData(commitIndex, details -> { if (!details.isEmpty()) { performAction(project, ui, Objects.requireNonNull(getFirstItem(details)), e); } }, t -> FileHistoryOneCommitActionKt.showError(project, t), null); }