ModelScopeItem (@Nullable Module module) { if (module != null) { Project project = module.getProject(); if (ModuleManager.getInstance(project).getModules().length > 1) return new ModuleScopeItem(module); } return null; }