boolean (@NotNull AnActionEvent e) { FilePath filePath = e.getData(VcsDataKeys.FILE_PATH); return e.getData(VcsLogInternalDataKeys.FILE_HISTORY_UI) != null && filePath != null && !filePath.isDirectory(); }