void (@NotNull AnActionEvent e) { VcsSelectionHistoryDialog dialog = e.getRequiredData(SELECTION_HISTORY_DIALOG_KEY); VcsFileRevision revision = dialog.myList.getSelectedObject(); if (revision == null) return; FilePath filePath = VcsUtil.getFilePath(dialog.myFile); dialog.getDiffHandler().showDiffForTwo(dialog.myProject, filePath, revision, dialog.myBlockLoader.getLocalRevision()); }