PsiElement () { final PsiElement elementName = findElementByTokenType(XML_NAME); final PsiElement nextSibling = (elementName != null) ? elementName.getNextSibling() : null; final PsiElement elementType = (nextSibling instanceof PsiWhiteSpace) ? nextSibling.getNextSibling() : nextSibling; return elementType; }