Collection<UnloadedModuleDescription> () { Set<UnloadedModuleDescription> result = new LinkedHashSet<>(); for (GlobalSearchScope scope : myScopes) { result.addAll(scope.getUnloadedModulesBelongingToScope()); } return result; }