public static boolean isElementWithSomeEmbeddedType(XmlTag xml) {
    final String localName = xml.getLocalName();
    if (! (XmlUtil.XML_SCHEMA_URI.equals(xml.getNamespace()) && "element".equals(localName))) {
      return false;
    }
    final XmlTag[] tags = xml.getSubTags();
    for (XmlTag tag : tags) {
      if (isTypeElement(tag)) {
        return true;
      }
    }
    return false;
  }
public static boolean isElementWithSomeEmbeddedType(XmlTag xml)