@Override
    public void visitXPathFunctionCall(XPathFunctionCall call) {
      final XPathFunction xpathFunction = call.resolve();
      if (xpathFunction != null) {
        final Function functionDecl = xpathFunction.getDeclaration();
        if (functionDecl != null) {
          final Parameter p = findParameterDecl(call.getArgumentList(), myExpression, functionDecl.getParameters());
          if (p != null) {
            if (p.type == XPath2Type.BOOLEAN) {
              myExpectedType = XPath2Type.BOOLEAN_STRICT;
            } else {
              myExpectedType = p.type;
            }
          }
        }
      }
    }
@Override
    public void visitXPathFunctionCall(XPathFunctionCall call)