@Nullable
  public static NewLibraryConfiguration resolveAndDownload(@NotNull Project project,
                                                           String coord,
                                                           boolean attachSources,
                                                           boolean attachJavaDoc,
                                                           boolean includeTransitiveDependencies,
                                                           String copyTo,
                                                           Collection<RemoteRepositoryDescription> repositories) {
    JpsMavenRepositoryLibraryDescriptor libraryDescriptor = new JpsMavenRepositoryLibraryDescriptor(coord, includeTransitiveDependencies, Collections.emptyList());
    return resolveAndDownload(
      project, libraryDescriptor, ArtifactKind.kindsOf(attachSources, attachJavaDoc, libraryDescriptor.getPackaging()), copyTo, repositories
    );
  }
@Nullable
  public static NewLibraryConfiguration resolveAndDownload(@NotNull Project project,
                                                           String coord,
                                                           boolean attachSources,
                                                           boolean attachJavaDoc,
                                                           boolean includeTransitiveDependencies,
                                                           String copyTo,
                                                           Collection<RemoteRepositoryDescription> repositories)