public static @Nullable XmlElement getValueElement(GenericDomValue<?> domValue) {
    if (domValue instanceof GenericAttributeValue<?> value) {
      XmlAttributeValue attributeValue = value.getXmlAttributeValue();
      return attributeValue == null ? value.getXmlAttribute() : attributeValue;
    } else {
      return domValue.getXmlTag();
    }
  }
public static @Nullable XmlElement getValueElement(GenericDomValue<?> domValue)