boolean (PsiExpression expression, int testValue) { final Integer value = (Integer)ConstantExpressionUtil.computeCastTo(expression, PsiTypes.intType()); return value != null && value.intValue() == testValue; }