public void warning(String message, Throwable exception) {
    if (loggedMessages.contains(message)) {
      return;
    }

    Log.w(L.TAG, message, exception);

    loggedMessages.add(message);
  }
Set to ensure that we only log each message one time max.
lottie/src/main/java/com/airbnb/lottie/utils/LogcatLogger.java