void () { PsiField field = myClass.findFieldByName("STRING_EXPRESSION_CLASS", false); assertNotNull(field); PsiBinaryExpression initializer = (PsiBinaryExpression)field.getInitializer(); assertNotNull(initializer); assertTrue(initializer.getType().equalsToText("java.lang.String")); assertEquals("Integer.class + \"xxx\"", initializer.getText()); assertEquals("class java.lang.Integerxxx", field.computeConstantValue()); }