private static Set<MacroDirective> convert(DomainObjectSet<? extends org.gradle.tooling.model.cpp.MacroDirective> directives) {
    Set<MacroDirective> macroDirectives = new LinkedHashSet<>(directives.size());
    for (org.gradle.tooling.model.cpp.MacroDirective directive : directives) {
      macroDirectives.add(convert(directive));
    }
    return macroDirectives;
  }
private static Set<MacroDirective> convert(DomainObjectSet<? extends org.gradle.tooling.model.cpp.MacroDirective> directives)