XPathNodeTypeTest (XPathExpression argument) { final XPathNodeTest test = findNodeTest(argument); if (test != null && !test.isNameTest() && test.getPrincipalType() == XPathNodeTest.PrincipalType.ELEMENT) { return PsiTreeUtil.getChildOfType(test, XPathNodeTypeTest.class); } return null; }