void (@NotNull JList<? extends FocusElement> list, FocusElement value, int index, boolean selected, boolean hasFocus) { clear(); final SimpleColoredText text = value.getText(); final ArrayList<@Nls String> strings = text.getTexts(); final ArrayList<SimpleTextAttributes> attributes = value.getText().getAttributes(); for (int i = 0; i < strings.size(); i++) { append(strings.get(i), attributes.get(i)); } }