code: public Collection<ArtifactSpec> getDirectDependencies(boolean includeUnsolved, boolean includePresolved) {
          Set<ArtifactSpec> deps = new LinkedHashSet<>();
          if (includeUnsolved) {
              deps.addAll(getDirectDeps());
          }
          if (includePresolved) {
              deps.addAll(presolvedDependencies.getDirectDeps());
          }
          return deps;
      }
docs: Get the collection of direct dependencies included in this instance.
  
  @param includeUnsolved  include dependencies that may need further
  @param includePresolved include the dependencies that do not need further resolution.
  @return the collection of direct dependencies included in this instance.