void (ColoredListCellRenderer coloredListCellRenderer, boolean selected, boolean hasFocus) { String text; if (isForwardDirection) { text = EditorBundle.message("large.file.editor.text.find.next.matches"); } else { text = EditorBundle.message("large.file.editor.text.find.previous.matches"); } if (selected) { coloredListCellRenderer.append(text); } else { coloredListCellRenderer.append(text, linkText); } coloredListCellRenderer.setBackground(UIUtil.getListBackground(selected, hasFocus)); }