Object (UExpression expr) { UValue value = UEvaluationContextKt.uValueOf(expr); if (value == null) { return null; } UConstant constant = value.toConstant(); if (constant == null) { return null; } return constant.getValue(); }