docs: private static ImageFormat getWebpFormat(final byte[] imageHeaderBytes, final int headerSize) {
      Preconditions.checkArgument(WebpSupportStatus.isWebpHeader(imageHeaderBytes, 0, headerSize));
      if (WebpSupportStatus.isSimpleWebpHeader(imageHeaderBytes, 0)) {
        return DefaultImageFormats.WEBP_SIMPLE;
      }
  
      if (WebpSupportStatus.isLosslessWebpHeader(imageHeaderBytes, 0)) {
        return DefaultImageFormats.WEBP_LOSSLESS;
      }
  
      if (WebpSupportStatus.isExtendedWebpHeader(imageHeaderBytes, 0, headerSize)) {
        if (WebpSupportStatus.isAnimatedWebpHeader(imageHeaderBytes, 0)) {
          return DefaultImageFormats.WEBP_ANIMATED;
        }
        if (WebpSupportStatus.isExtendedWebpHeaderWithAlpha(imageHeaderBytes, 0)) {
          return DefaultImageFormats.WEBP_EXTENDED_WITH_ALPHA;
        }
        return DefaultImageFormats.WEBP_EXTENDED;
      }
  
      return ImageFormat.UNKNOWN;
    }