static boolean hasSubTags(XmlTag tag) {
    PsiElement child = tag.getFirstChild();
    while (child != null) {
      if (child instanceof XmlTag) {
        return true;
      }
      child = child.getNextSibling();
    }
    return false;
  }
static boolean hasSubTags(XmlTag tag)