GlobalSearchScope (@NotNull Project project) { GlobalSearchScope projectScope = GlobalSearchScope.allScope(project); return new GlobalSearchScope(project) { @Override public int compare(@NotNull VirtualFile file1, @NotNull VirtualFile file2) { return projectScope.compare(file1, file2); } @Override public boolean isSearchInModuleContent(@NotNull Module aModule) { return true; } @Override public boolean contains(@NotNull VirtualFile file) { final VirtualFile parent = file.getParent(); return parent != null && (parent.getName().equals("standardSchemas") || projectScope.contains(file)); } @Override public boolean isSearchInLibraries() { return true; } }; }