void (@NotNull AnActionEvent e) { Project project = e.getRequiredData(CommonDataKeys.PROJECT); if (ChangeListManager.getInstance(project).isFreezedWithNotification(null)) { return; } VirtualFile file = requireNonNull(VcsContextUtil.selectedFile(e.getDataContext())); AbstractVcs vcs = requireNonNull(ChangesUtil.getVcsForFile(file, project)); DiffProvider provider = requireNonNull(vcs.getDiffProvider()); Editor editor = e.getData(CommonDataKeys.EDITOR); getExecutor(provider, file, project, editor).showDiff(); }