code: public static <T extends SaneEnum> int wireValue(Set<T> values) {
      int result = 0;
  
      for (T value : values) {
        result |= value.getWireValue();
      }
  
      return result;
    }
docs: Returns the result of bitwise-ORing the wire values of the given {@code SaneEnum} set. This
  method does not check to make sure the result is sensible: the caller must ensure that the set
  contains members whose wire values can be ORed together in a logically correct fashion.