PsiType (@NotNull PsiExpression expr) { PsiElementFactory factory = JavaPsiFacade.getElementFactory(expr.getProject()); PsiType type = getTypeByExpression(expr, factory); if (LambdaUtil.notInferredType(type)) { type = factory.createTypeByFQClassName(CommonClassNames.JAVA_LANG_OBJECT, expr.getResolveScope()); } return type; }