Library[] (Project project) { final List<Library> libraries = new ArrayList<>(); for (Module module : ModuleManager.getInstance(project).getModules()) { libraries.addAll(Arrays.asList(getSDKLibrariesByModule(module))); } return libraries.toArray(Library.EMPTY_ARRAY); }