void () { PsiField field = myClass.findFieldByName("INT_CONST3", false); assertNotNull(field); PsiPrefixExpression initializer = (PsiPrefixExpression)field.getInitializer(); assertNotNull(initializer); assertEquals(PsiTypes.intType(), initializer.getType()); int value = -1 << 31; assertEquals(Integer.toString(value), initializer.getText()); assertEquals(Integer.valueOf(value), field.computeConstantValue()); }