PsiElement (PsiElement n) { // attributes cannot appear in the child axis // optimize: skip XmlTokens while (n != null && (!isXmlElement(n) || isXmlToken(n) || isAttribute(n))) { n = n.getNextSibling(); } return n; }