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