NewLibraryConfiguration (@NotNull Project project, @NotNull JpsMavenRepositoryLibraryDescriptor descriptor, Set<ArtifactKind> kinds, String copyTo, Collection<RemoteRepositoryDescription> repositories) { final Collection<OrderRoot> roots = new ArrayList<>(); if (descriptor.getMavenId() != null) { roots.addAll(loadDependenciesModal(project, descriptor, kinds, repositories, copyTo)); } if (!roots.isEmpty()) { notifyArtifactsDownloaded(project, roots); return createNewLibraryConfiguration(new RepositoryLibraryProperties(descriptor), roots); } return null; }