void (Component invoker, int x, int y) { int sideBorders = 0; if (ExperimentalUI.isNewUI() && ComboBoxPopup.isRendererWithInsets(comboBox.getRenderer())) { scroller.setViewportBorder(JBUI.Borders.empty(PopupUtil.getListInsets(false, false))); scroller.setBackground(UIManager.getColor("ComboBox.background")); scroller.getVerticalScrollBar().setBackground(UIManager.getColor("ComboBox.background")); sideBorders = 10; } if (comboBox instanceof ComboBoxWithWidePopup) { Dimension popupSize = comboBox.getSize(); int minPopupWidth = ((ComboBoxWithWidePopup<?>)comboBox).getMinimumPopupWidth() + 2 * sideBorders; Insets insets = getInsets(); popupSize.width = Math.max(popupSize.width, minPopupWidth); popupSize.setSize(popupSize.width - (insets.right + insets.left), getPopupHeightForRowCount(comboBox.getMaximumRowCount())); scroller.setMaximumSize(popupSize); scroller.setPreferredSize(popupSize); scroller.setMinimumSize(popupSize); list.revalidate(); } super.show(invoker, x - sideBorders, y); }