@Override
  public void setSize(@Nullable Point location, @NotNull Dimension size) {
    // do not update the bounds programmatically if the user moves or resizes the popup
    if (!isBusy()) {
      setBounds(location, new Dimension(size));
      if (myPopup != null) Optional.ofNullable(getContentWindow(myContent)).ifPresent(Container::validate); // to adjust content size
    }
  }
@Override
  public void setSize(@Nullable Point location, @NotNull Dimension size)