@Override
    @Nullable
    public XPathExpression getExpression() {
      final XPathExpression expression = findChildByClass(XPathExpression.class);
      if (expression != null) {
        return expression;
      } else {
        final XPathNodeTest nt = findChildByClass(XPathNodeTest.class);
        if (nt == null) return null;
        final ASTNode node = nt.getNode().findChildByType(XPath2ElementTypes.EXPRESSIONS);
        return node != null ? node.getPsi(XPathExpression.class) : null;
      }
//        return (XPathExpression)(nodes.length > 0 ? nodes[0].getPsi() : null);
    }
@Override
    @Nullable
    public XPathExpression getExpression()