void (@NotNull AnActionEvent e) { Project project = e.getData(CommonDataKeys.PROJECT); e.getPresentation().setEnabled( project == null || TrustedProjects.isTrusted(project) && !ProjectLevelVcsManager.getInstance(project).isBackgroundVcsOperationRunning() ); }