docs: private static void resolveDependencies(Collection<ArtifactSpec> collection, ShrinkwrapArtifactResolvingHelper helper) {
          // Identify the artifact specs that need resolution.
          // Ideally, there should be none at this point.
          collection.forEach(spec -> {
              if (spec.file == null) {
                  // Resolve it.
                  ArtifactSpec resolved = helper.resolve(spec);
                  if (resolved != null) {
                      spec.file = resolved.file;
                  } else {
                      throw new IllegalStateException("Unable to resolve artifact: " + spec.toString());
                  }
              }
          });
      }