public Component getListCellRendererComponent(
JList list, Object value, int index,
boolean isSelected, boolean hasFocus) {
if(value instanceof Rule) {
final Rule item = (Rule) value;
setText(item.toString());
setForeground(list.getForeground());
setIcon(item.getNotEmpty() ? ImageFactory.getSingleton().FAV16 : null);
if(list.getSelectedValue() == item ) {
setBackground(Color.LIGHT_GRAY);
setOpaque(true);
} else {