void () { PsiField field = myClass.findFieldByName("STRING_EXPRESSION_CONST4", false); assertNotNull(field); PsiBinaryExpression initializer = (PsiBinaryExpression)field.getInitializer(); assertNotNull(initializer); assertTrue(initializer.getType().equalsToText("java.lang.String")); assertEquals("INT_CONST1 + \"aaa\"", initializer.getText()); assertEquals("1aaa", field.computeConstantValue()); }