Component (JList<? extends ChooseRunConfigurationPopup.ItemWrapper> list, ChooseRunConfigurationPopup.ItemWrapper wrapper, int index, boolean isSelected, boolean cellHasFocus) { runConfigInfo.clear(); executorInfo.clear(); setBackground(UIUtil.getListBackground(isSelected, true)); setFont(list.getFont()); Color foreground = isSelected ? list.getSelectionForeground() : list.getForeground(); runConfigInfo.append(wrapper.getText(), new SimpleTextAttributes(SimpleTextAttributes.STYLE_PLAIN, foreground)); runConfigInfo.setIcon(wrapper.getIcon()); fillExecutorInfo(wrapper, list, isSelected); return this; }