Component (JList<? extends RecentLocationItem> list, RecentLocationItem value, int index, boolean selected, boolean hasFocus) { myTitle.clear(); if (myProject.isDisposed() || getEditor().isDisposed()) return myTitle; myCurrentValueForPainting = value; myCurrentSelectedForPainting = selected; EditorColorsScheme colorsScheme = getEditor().getColorsScheme(); Color backgroundColor = getBackgroundColor(colorsScheme, selected); myTitle.setForeground(colorsScheme.getDefaultForeground()); setForcedBackground(backgroundColor); getEditor().setBackgroundColor(backgroundColor); customizeTitleComponentText(value.info); customizeEditorComponent(value); setBorder(index == 0 ? JBUI.Borders.empty() : JBUI.Borders.customLine(getSeparatorLineColor(colorsScheme), 1, 0, 0, 0)); return this; }