boolean (@NotNull PyReferenceExpression node, @Nullable PsiElement resolved) { return resolved != null && PyUtil.inSameFile(node, resolved) && PsiTreeUtil.getParentOfType(resolved, PyWithStatement.class, true, ScopeOwner.class) != null; }