void (@NotNull XPathExpression expression) { final XPathType expectedType = ExpectedTypeUtil.getExpectedType(expression); // conversion to NODESET is impossible (at least not in a portable way) and is flagged by annotator if (expectedType != XPathType.NODESET && expectedType != XPathType.UNKNOWN) { final boolean isExplicit = FLAG_EXPLICIT_CONVERSION && ExpectedTypeUtil.isExplicitConversion(expression); checkExpressionOfType(expression, expectedType, isExplicit); } }