void (@NotNull PsiElement element) { if (element.getNode().getElementType() == XmlElementType.XML_CDATA) { element.acceptChildren(this); } else if (!(element instanceof LeafPsiElement) || !isContentToken(element.getNode().getElementType())) { result.add(element.getTextRangeInParent()); } }