void (XPathPredicate o) { final XPathExpression expression = o.getPredicateExpression(); if (expression instanceof XPathLocationPath) { final XPathExpression parentOfType = PsiTreeUtil.getParentOfType(o, XPathExpression.class, true); if (parentOfType != null && XPath2Type.ANYATOMICTYPE.isAssignableFrom(parentOfType.getType())) { myHolder.newAnnotation(HighlightSeverity.ERROR, XPathBundle.message("annotator.error.axis.step.cannot.be.used.here.context.item.atomic.value")).range(expression).create(); } } super.visitXPathPredicate(o); }