GlobalSearchScope (@NotNull List<? extends Module> modulesLibraryIsUsedIn) { Module[] array = modulesLibraryIsUsedIn.toArray(Module.EMPTY_ARRAY); GlobalSearchScope scope = myLibraryScopes.get(array); return scope != null ? scope : ConcurrencyUtil.cacheOrGet(myLibraryScopes, array, new LibraryRuntimeClasspathScope(myProject, modulesLibraryIsUsedIn)); }