void (@NotNull JList list, Item value, int index, boolean selected, boolean hasFocus) { setIcon(myListEntryIcon); if (myUseIdeaEditor && myUseNumbering) { int max = list.getModel().getSize(); String indexString = String.valueOf(index + 1); int count = String.valueOf(max).length() - indexString.length(); String prefix = indexString + StringUtil.repeatSymbol(' ', count) + " "; append(prefix, SimpleTextAttributes.GRAYED_ATTRIBUTES, false); } String text = value.getShortText(previewChars); append(text, SimpleTextAttributes.REGULAR_ATTRIBUTES, true); SpeedSearchUtil.applySpeedSearchHighlighting(list, this, true, selected); }