Object (PsiExpression expression) { if (expression instanceof PsiClassObjectAccessExpression) return null; try { Object value = ExpressionUtils.computeConstantExpression(expression, true); if (value != null && !(value instanceof Enum<?>)) { return value; } } catch (ConstantEvaluationOverflowException ignore) { return null; } if (reportOnlyCompileTimeConstants) return null; if (SideEffectChecker.mayHaveSideEffects(expression)) return null; return CommonDataflow.computeValue(expression); }