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