@Override
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected,
boolean cellHasFocus) {
this.list = list;
super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
ListDecorator decorator = null;
if (value instanceof IntegrationEntity) {
decorator = getDecorator((IntegrationEntity) value);
} else if (value instanceof ListDecorator) {
decorator = (ListDecorator) value;
}
if (decorator != null) {
decorator.decorate(this, isSelected);
}
if (insets != null) {
setBorder(new BorderBuilder(getBorder()).empty(insets));
}
return this;