code: @RestrictTo(RestrictTo.Scope.LIBRARY)
    public KeyPath resolve(KeyPathElement element) {
      KeyPath keyPath = new KeyPath(this);
      keyPath.resolvedElement = element;
      return keyPath;
    }
docs: Return a new KeyPath with the element resolved to the specified {@link KeyPathElement}.