Promise<List<OrderRoot>> (@NotNull Project project, RepositoryLibraryProperties libraryProps, boolean loadSources, boolean loadJavadoc, @Nullable List<RemoteRepositoryDescription> repos, @Nullable String copyTo) { EnumSet<ArtifactKind> kinds = ArtifactKind.kindsOf(loadSources, loadJavadoc, libraryProps.getPackaging()); return loadDependenciesAsync( project, libraryProps.getRepositoryLibraryDescriptor(), kinds, repos, copyTo ); }