void (@NotNull AnActionEvent e) { Project project = e.getProject(); boolean isVisible = project != null && ProjectLevelVcsManager.getInstance(project).hasActiveVcss(); e.getPresentation().setEnabled(isEnabled(e.getDataContext())); e.getPresentation().setVisible(isVisible); }