void (@NotNull String expectedType, @Nullable PyExpression expr) { assertNotNull(expr); for (TypeEvalContext context : getTypeEvalContexts(expr)) { assertType(expectedType, expr, context); assertProjectFilesNotParsed(context); } }