private static <T> KeyframesWrapper<T> wrap(List<? extends Keyframe<T>> keyframes) {
    if (keyframes.isEmpty()) {
      return new EmptyKeyframeWrapper<>();
    }
    if (keyframes.size() == 1) {
      return new SingleKeyframeWrapper<>(keyframes);
    }
    return new KeyframesWrapperImpl<>(keyframes);
  }
Similar to {@link #getValue(Keyframe, float)} but used when an animation has separate interpolators for the X and Y axis.
lottie/src/main/java/com/airbnb/lottie/animation/keyframe/BaseKeyframeAnimation.java