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