CppComponent (@Nullable org.gradle.tooling.model.cpp.CppComponent component) { if (component == null) return null; CppComponentImpl cppComponent; if (component instanceof org.gradle.tooling.model.cpp.CppTestSuite) { cppComponent = new CppTestSuiteImpl(component.getName(), component.getBaseName()); } else { cppComponent = new CppComponentImpl(component.getName(), component.getBaseName()); } for (org.gradle.tooling.model.cpp.CppBinary binary : component.getBinaries()) { cppComponent.addBinary(convert(binary)); } return cppComponent; }