void (@NotNull JList<? extends Item> list, Item value, int index, boolean selected, boolean hasFocus) { setIcon(value.myIcon); append(value.myText); append(" "); append("this text is gray", SimpleTextAttributes.GRAY_ATTRIBUTES); append(" "); append("error", SimpleTextAttributes.ERROR_ATTRIBUTES); if (!value.myChildren.isEmpty()) { append(" ->"); } }