PyResolveContext (@NotNull PsiElement origin) { final TypeEvalContext typeEvalContext = TypeEvalContext.codeAnalysis(origin.getProject(), origin.getContainingFile()); return PyResolveContext.defaultContext(typeEvalContext); }