void (@NotNull JList<? extends MyItem<T>> list, MyItem<T> value, int index, boolean selected, boolean hasFocus) { if (value == null) return; CompositeAppearance.DequeEnd ending = new CompositeAppearance().getEnding(); ending.addText(value.getText(), getTextAttributes(selected)); if (value.getComment() != null) { SimpleTextAttributes commentAttributes = getCommentAttributes(selected); ending.addComment(value.getComment(), commentAttributes); } ending.getAppearance().customize(this); }