public SuperTypeInfo build() { return TestingSuperTypeInfo.builder() .annotationInfoList(annotationInfoList) .superTypeInfo(Optional.ofNullable(superTypeInfo)) .interfaceInfoMap(InterfaceInfoMap.mapOf(interfaceInfoList)) .methodInfoList(methodInfoList) .build(); }
private static SuperTypeInfo superTypeInfo(TypeInfo typeInfo) { return TestingSuperTypeInfo.builder() .annotationInfoList(typeInfo.annotationInfoList()) .superTypeInfo(typeInfo.superTypeInfo()) .interfaceInfoMap(typeInfo.interfaceInfoMap()) .methodInfoList(typeInfo.methodInfoList()) .build(); }