Component (final JList list, final Object value, final int index, final boolean isSelected, final boolean cellHasFocus) { final Component rendererComponent = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); setText(((ProjectImportProvider)value).getName()); Icon icon = ((ProjectImportProvider)value).getIcon(); setIcon(icon); setDisabledIcon(icon == null ? null : IconLoader.getDisabledIcon(icon)); return rendererComponent; }