boolean (@NotNull ASTNode node) { if (node.getPsi() instanceof XmlText || node.getElementType() == XmlElementType.HTML_RAW_TEXT) { return true; } ASTNode firstChild = node.getFirstChildNode(); ASTNode lastChild = node.getLastChildNode(); if (firstChild != null && firstChild == lastChild && firstChild.getPsi() instanceof XmlText) { return true; } return false; }