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