boolean (PsiElement ancestor, PsiElement element, boolean strict) { final TextRange exprRange = ancestor.getUserData(ElementToWorkOn.EXPR_RANGE); if (exprRange != null) { return exprRange.contains(element.getTextRange()); } return PsiTreeUtil.isAncestor(getPhysical(ancestor), getPhysical(element), strict); }