boolean (@Nullable Project project) { if (project != null) { return DumbService.getInstance(project).isDumb(); } for (Project openProject : ProjectManager.getInstance().getOpenProjects()) { if (DumbService.getInstance(openProject).isDumb()) { return true; } } return false; }