Component (JList<? extends E> list, E value, int index, boolean isSelected, boolean cellHasFocus) { String caption = myDescriptor.getCaptionAboveOf(value); boolean hasSeparator = hasSeparator(value, index); Icon icon = getItemIcon(value, isSelected); final JComponent result = configureComponent(myDescriptor.getTextFor(value), myDescriptor.getTooltipFor(value), icon, icon, isSelected, hasSeparator, caption, -1); myCurrentIndex = index; myRendererComponent.setBackground(list.getBackground()); customizeComponent(list, value, isSelected); if (ExperimentalUI.isNewUI() && getItemComponent() instanceof SelectablePanel selectablePanel) { selectablePanel.setSelectionColor(isSelected ? JBUI.CurrentTheme.List.background(true, true) : null); } return result; }