@ApiStatus.Internal
  @ApiStatus.Experimental
  public static void setFosterParent(@NotNull JComponent component, @Nullable Component parent) {
    WeakReference<Component> ref = validateFosterParent(component, parent);
    ClientProperty.put(component, FOSTER_PARENT, ref);
  }
@ApiStatus.Internal
  @ApiStatus.Experimental
  public static void setFosterParent(@NotNull JComponent component, @Nullable Component parent)