boolean (@NotNull ASTNode tagNode) { ASTNode child = tagNode.getFirstChildNode(); boolean checkContent = false; while (child != null) { IElementType childType = child.getElementType(); if (checkContent) { if (childType == XmlTokenType.XML_END_TAG_START) { return true; } else if (!isTextNode(childType)) return false; } else { if (childType == XmlTokenType.XML_TAG_END) { checkContent = true; } } child = child.getTreeNext(); } return false; }