boolean (PsiElement element) { final XPathVariableReference reference = PsiTreeUtil.getParentOfType(element, XPathVariableReference.class, false); if (reference != null) { return canInline(reference.resolve()); } return canInline(element); }