Component (@NotNull JList list, Object val, int i, boolean isSelected, boolean cellHasFocus) { Scheme c = (Scheme)val; myNameLabel.setText(c.getDisplayName()); updateColors(isSelected); return myPanel; }