void (@NotNull AnActionEvent e) { VcsLogManager logManager = e.getData(VcsLogInternalDataKeys.LOG_MANAGER); e.getPresentation().setEnabledAndVisible(logManager != null && e.getData(VcsLogDataKeys.VCS_LOG_UI) != null); }