void () { for (final AbstractDomChildrenDescription description : getGenericInfo().getChildrenDescriptions()) { if (description instanceof DomAttributeChildDescription) { final Required required = description.getAnnotation(Required.class); if (required != null && required.value()) { description.getValues(getProxy()).get(0).ensureXmlElementExists(); } } else if (description instanceof DomFixedChildDescription childDescription) { List<? extends DomElement> values = null; final int count = childDescription.getCount(); for (int i = 0; i < count; i++) { final Required required = childDescription.getAnnotation(i, Required.class); if (required != null && required.value()) { if (values == null) { values = description.getValues(getProxy()); } values.get(i).ensureTagExists(); } } } } }