void (DomElement element) { if (element instanceof GenericValue && element.getChildDescription().getAnnotation(Documentation.class) != null) { result.set(((GenericValue<?>)element).getStringValue()); } }