@Override
    public void visitXPathFilterExpression(XPathFilterExpression filterExpression) {
      final XPathExpression filteredExpression = filterExpression.getExpression();
      if (filteredExpression == myExpression) {
        myExpectedType = isXPath1(myExpression) ? XPathType.NODESET : XPath2Type.SEQUENCE;
        return;
      }

      assert filterExpression.getPredicate().getPredicateExpression() == myExpression;
      myExpectedType = getPredicateType(myExpression);
    }
@Override
    public void visitXPathFilterExpression(XPathFilterExpression filterExpression)