void (JList<? extends ProjectTemplate> list, ProjectTemplate value, boolean isSelected) { super.customizeComponent(list, value, isSelected); Icon icon = myTextLabel.getIcon(); if (icon != null && myTextLabel.getDisabledIcon() == icon) { myTextLabel.setDisabledIcon(IconLoader.getDisabledIcon(icon)); } myTextLabel.setEnabled(myList.isEnabled()); myTextLabel.setBorder(JBUI.Borders.empty(3)); }