void (@NotNull AnActionEvent e) { Project project = e.getProject(); e.getPresentation() .setEnabledAndVisible(project != null && !VcsRepositoryManager.getInstance(project).getRepositories().isEmpty()); }