Object (@Nullable PsiExpression expression) { PsiExpression expressionToAnalyze = PsiUtil.skipParenthesizedExprDown(expression); if (expressionToAnalyze == null) return null; Object computed = ExpressionUtils.computeConstantExpression(expressionToAnalyze); if (computed != null) return computed; return getDfType(expressionToAnalyze).getConstantOfType(Object.class); }