JComponent (JComponent content) { final var component = super.createPopupComponent(content); final var renderer = ((MyBasePopupState<?>)myStep).myGetRenderer.get(); if (component instanceof JScrollPane scrollPane && isRendererWithInsets(renderer)) { scrollPane.getVerticalScrollBar().setBackground(UIManager.getColor("ComboBox.background")); } return component; }