void (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); }