Collection (final ModuleDescriptor entry) { final List<Object> deps = new ArrayList<>(entry.getDependencies()); final Collection<LibraryDescriptor> libDependencies = getInsight().getLibraryDependencies(entry); for (LibraryDescriptor libDependency : libDependencies) { if (myLibrariesFilter.isLibraryChosen(libDependency)) { deps.add(libDependency); } } return deps; }