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