code: public static <T extends BitWritable> void writeObject(final BitOutput output, final T value) throws IOException {
          if (output == null) {
              throw new NullPointerException("output is null");
          }
          if (value == null) {
              throw new NullPointerException("value is null");
          }
          value.write(output);
      }
docs: -----------------------------------------------------------------------------------------------------------------