PsiElement (ASTNode node) { final IElementType type = node.getElementType(); final PsiElement element = createElement(type, node); if (element != null) { return element; } return new XPathTokenImpl(node); }