void (@NotNull AnActionEvent e) { VcsLogUsageTriggerCollector.triggerUsage(e, this); Project project = e.getRequiredData(CommonDataKeys.PROJECT); Change[] changes = e.getData(VcsDataKeys.SELECTED_CHANGES); if (changes == null || changes.length != 1 || changes[0] == null) return; ListSelection<Change> selection = ListSelection.createAt(Arrays.asList(changes), 0) .asExplicitSelection(); ShowDiffAction.showDiffForChange(project, selection); }