void (@NotNull AnActionEvent e) { Project project = e.getProject(); VcsLogUi ui = e.getData(VcsLogDataKeys.VCS_LOG_UI); e.getPresentation().setEnabledAndVisible(project != null && ui instanceof MainVcsLogUi); }