Set<MacroDirective> (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; }