GlobalSearchScope (@NotNull Project project, @Nullable Module module, boolean forLibraries) { if (module == null) { if (forLibraries) { return new ProjectLibrariesSearchScope(project); } return GlobalSearchScope.projectScope(project); } else { if (forLibraries) { return new ModuleLibrariesSearchScope(module); } return GlobalSearchScope.moduleScope(module); } }