Void (@NotNull LibraryOrderEntry ideDependency, Void value) { if (ideDependency.isModuleLevel()) { return null; } Library lib = ideDependency.getLibrary(); if (lib == null) { lib = namesToLibs.get(ideDependency.getLibraryName()); } if (lib != null) { potentialOrphans.remove(lib); } return null; }