int index, boolean isSelected, boolean cellHasFocus) {
JComponent result = (JComponent) super.getListCellRendererComponent(
list, value, index, isSelected, cellHasFocus);
ListUI listUI = list.getUI();
if (listUI instanceof SubstanceListUI) {
SubstanceListUI ui = (SubstanceListUI) listUI;
ComponentState state = ui.getCellState(index, result);
ComponentState prevState = ui.getPrevCellState(index);