boolean () { for (XmlText xmlText : getTextElements()) { PsiElement[] children = xmlText.getChildren(); for (PsiElement child : children) { if (child.getNode().getElementType() == XmlElementType.XML_CDATA) { return true; } } } return false; }