void (@NotNull AnActionEvent e) { Project project = Objects.requireNonNull(e.getProject()); List<FilePath> symlinkedPaths = getContextSymlinkedPaths(project, e.getDataContext()); if (symlinkedPaths != null && canShowNewFileHistory(project, symlinkedPaths)) { showNewFileHistory(project, symlinkedPaths); return; } List<FilePath> selectedFiles = VcsContextUtil.selectedFilePaths(e.getDataContext()); if (canShowNewFileHistory(project, selectedFiles)) { showNewFileHistory(project, selectedFiles); return; } if (selectedFiles.size() == 1) { FilePath path = Objects.requireNonNull(ContainerUtil.getFirstItem(selectedFiles)); AbstractVcs vcs = Objects.requireNonNull(ChangesUtil.getVcsForFile(Objects.requireNonNull(getExistingFileOrParent(path)), project)); showOldFileHistory(project, vcs, path); } }