void (DomExtension extension, boolean isClassField, @Nullable With withElement) { if (withElement != null) { final String withClassName = withElement.getImplements().getStringValue(); extension.addCustomAnnotation(new ExtendClassImpl() { @Override public String[] value() { return new String[]{withClassName}; } }); } if (withElement != null || isClassField) { extension.setConverter(CLASS_CONVERTER); } }