docs: private static DependencyDescriptor asDescriptor(String scope, ResolvedDependency dependency) {
  
          Set<ResolvedArtifact> artifacts = dependency.getModuleArtifacts();
  
          // Let us use the first artifact's type for determining the type.
          // I am not sure under what circumstances, would we need to check for multiple artifacts.
          String type = "jar";
          String classifier = null;
          File file = null;
  
          if (!artifacts.isEmpty()) {
              ResolvedArtifact ra = artifacts.iterator().next();
              type = ra.getType();
              classifier = ra.getClassifier();
              file = ra.getFile();
          }
          return new DefaultDependencyDescriptor(scope, dependency.getModuleGroup(), dependency.getModuleName(),
                                                 dependency.getModuleVersion(), type, classifier, file);
      }