docs: private static DependencyDescriptor asDescriptor(String scope, ResolvedArtifact artifact) {
          ModuleVersionIdentifier id = artifact.getModuleVersion().getId();
          return new DefaultDependencyDescriptor(scope, id.getGroup(), id.getName(), id.getVersion(),
                                                 artifact.getType(), artifact.getClassifier(), artifact.getFile());
      }