void (@NotNull JList<? extends CompletionItem> list, @Nullable CompletionItem value, int index, boolean selected, boolean hasFocus) { if (!selected) { setBackground(UIUtil.getListBackground()); } String text = value == null ? "" : value.displayText; FList<TextRange> ranges = currentMatcher == null ? FList.emptyList() : currentMatcher.matchingFragments(text); SpeedSearchUtil.appendColoredFragments(this, text, ranges, SimpleTextAttributes.REGULAR_ATTRIBUTES, MATCHED); setIcon(value == null ? null : value.icon); }