void collapseIfEmpty() {
    final XmlTag[] tags = myTag.getSubTags();
    if (tags.length > 0) {
      return;
    }
    final ASTNode closingName = XmlChildRole.CLOSING_TAG_NAME_FINDER.findChild(myTag.getNode());
    final ASTNode startTagEnd = XmlChildRole.START_TAG_END_FINDER.findChild(myTag.getNode());
    if (closingName == null || startTagEnd == null) {
      return;
    }

    final ASTNode closingBracket = closingName.getTreeNext();
    final ASTNode tag = myTag.getNode();
    tag.removeRange(startTagEnd, closingBracket);
    final LeafElement emptyTagEnd =
      Factory.createSingleLeafElement(XmlTokenType.XML_EMPTY_ELEMENT_END, "/>", 0, 2, null, myTag.getManager());
    tag.replaceChild(closingBracket, emptyTagEnd);
  }
void collapseIfEmpty()