void (@NotNull String expectedType, @NotNull PyExpression expr) { final Project project = expr.getProject(); final PsiFile containingFile = expr.getContainingFile(); assertType(expectedType, expr, TypeEvalContext.codeAnalysis(project, containingFile)); assertProjectFilesNotParsed(containingFile); assertType(expectedType, expr, TypeEvalContext.userInitiated(project, containingFile)); }