@NotNull
    @Override
    public XPathType getExpectedType(XPathExpression expr) {
      return XPathType.BOOLEAN;
    }
@NotNull
    @Override
    public XPathType getExpectedType(XPathExpression expr)