public void adjust(@NotNull JBPopup popup, @NotNull Dimension d, Rectangle bounds) {
      Dimension size = bounds.getSize();
      if (!size.equals(d)) {
        popup.setSize(size);
      }
      if (popup.canShow()) {
        popup.show(new RelativePoint(myRelativeTo, new Point(
          bounds.x - myRelativeOnScreen.x,
          bounds.y - myRelativeOnScreen.y
        )));
      }
      else {
        popup.setLocation(bounds.getLocation());
      }
    }
public void adjust(@NotNull JBPopup popup, @NotNull Dimension d, Rectangle bounds)