docs: public static DoubleHistogram decodeFromByteBuffer(
              final ByteBuffer buffer,
              final Class<? extends AbstractHistogram> internalCountsHistogramClass,
              long minBarForHighestToLowestValueRatio) {
          try {
              int cookie = buffer.getInt();
              if (!isNonCompressedDoubleHistogramCookie(cookie)) {
                  throw new IllegalArgumentException("The buffer does not contain a DoubleHistogram");
              }
              DoubleHistogram histogram = constructHistogramFromBuffer(cookie, buffer, internalCountsHistogramClass,
                      minBarForHighestToLowestValueRatio);
              return histogram;
          } catch (DataFormatException ex) {
              throw new RuntimeException(ex);
          }
      }