GlobalSearchScope () { ProjectAndLibrariesScope result = new ProjectAndLibrariesScope(myProject) { @Override public boolean contains(@NotNull VirtualFile file) { return myProjectFileIndex.isInLibrary(file); } @Override public boolean isSearchInModuleContent(@NotNull Module aModule) { return false; } @Override public @NotNull Collection<UnloadedModuleDescription> getUnloadedModulesBelongingToScope() { return Collections.emptySet(); } }; result.setDisplayName(LangBundle.message("psi.search.scope.libraries")); return result; }