private static Boolean isGzipCompressed(BufferedSource inputSource) {
    return matchesMagicBytes(inputSource, GZIP_MAGIC);
  }
Check if a given InputStream points to a .gzip compressed file
lottie/src/main/java/com/airbnb/lottie/LottieCompositionFactory.java