boolean (@NotNull AnActionEvent e) { VcsHistorySession session = e.getData(VcsDataKeys.HISTORY_SESSION); FilePath path = e.getData(VcsDataKeys.FILE_PATH); return session != null && path != null && path.isDirectory(); }