@RestrictTo(RestrictTo.Scope.LIBRARY)
  public KeyPath resolve(KeyPathElement element) {
    KeyPath keyPath = new KeyPath(this);
    keyPath.resolvedElement = element;
    return keyPath;
  }
Return a new KeyPath with the element resolved to the specified {@link KeyPathElement}.
lottie/src/main/java/com/airbnb/lottie/model/KeyPath.java