@ApiStatus.Experimental
  public static @Nullable Component getParent(@NotNull Component component) {
    WeakReference<Component> ref = ClientProperty.get(component, FOSTER_PARENT);
    if (ref != null) {
      Component fosterParent = ref.get();
      if (fosterParent != null) {
        return fosterParent;
      }
    }

    return component.getParent();
  }
@ApiStatus.Experimental
  public static @Nullable Component getParent(@NotNull Component component)