docs: private static boolean isHeifHeader(final byte[] imageHeaderBytes, final int headerSize) {
      if (headerSize < HEIF_HEADER_LENGTH) {
        return false;
      }
  
      final byte boxLength = imageHeaderBytes[3];
      if (boxLength < 8) {
        return false;
      }
  
      for (final String heifFtype : HEIF_HEADER_SUFFIXES) {
        final int indexOfHeaderPattern =
            ImageFormatCheckerUtils.indexOfPattern(
                imageHeaderBytes,
                imageHeaderBytes.length,
                ImageFormatCheckerUtils.asciiBytes(HEIF_HEADER_PREFIX + heifFtype),
                HEIF_HEADER_LENGTH);
        if (indexOfHeaderPattern > -1) {
          return true;
        }
      }
  
      return false;
    }