void () { setMaxRowCount(myContext.getMaximumRowCount()); setRequestFocus(false); JList<T> list = getList(); myContext.configureList(list); list.setSelectionForeground(UIManager.getColor("ComboBox.selectionForeground")); list.setSelectionBackground(UIManager.getColor("ComboBox.selectionBackground")); list.setBorder(null); list.setFocusable(ScreenReader.isActive()); list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); final var renderer = ((MyBasePopupState<?>)myStep).myGetRenderer.get(); if (isRendererWithInsets(renderer)) { list.setBorder(JBUI.Borders.empty(PopupUtil.getListInsets(false, false))); mySpeedSearch.addChangeListener(x -> { list.setBorder(JBUI.Borders.empty(PopupUtil.getListInsets(!mySpeedSearch.getFilter().isBlank(), false))); }); } else { Border border = UIManager.getBorder("ComboPopup.border"); if (border != null) { getContent().setBorder(border); } } }