private static boolean equalityExpressionIsPointless(GrExpression lhs,
                                                       GrExpression rhs) {
    return ((isTrue(lhs) || isFalse(lhs)) && isBoolean(rhs)) ||
           ((isTrue(rhs) || isFalse(rhs)) && isBoolean(lhs));
  }
private static boolean equalityExpressionIsPointless(GrExpression lhs,
                                                       GrExpression rhs)