docs: public static DeclaredDependencies toDeclaredDependencies(Map<DependencyDescriptor, Set<DependencyDescriptor>> depMap) {
          DeclaredDependencies dependencies = new DeclaredDependencies();
          depMap.forEach((directDep, resolvedDeps) -> {
              ArtifactSpec parent = toArtifactSpec(directDep);
              dependencies.addResolved(parent);
              if (resolvedDeps != null) {
                  resolvedDeps.forEach(d -> dependencies.addResolved(parent, toArtifactSpec(d)));
              }
          });
          return dependencies;
      }