LibraryDescriptor (final List<? extends LibraryDescriptor> entries) { final ModuleInsight insight = getInsight(); LibraryDescriptor mainLib = null; for (LibraryDescriptor entry : entries) { if (mainLib == null) { mainLib = entry; } else { final Collection<File> files = entry.getJars(); insight.moveJarsToLibrary(entry, files, mainLib); } } return mainLib; }