void (int rowIndex, final S markState) { final T element = myElements.get(rowIndex); final S newValue = notNullMarkState(element, markState); final S prevValue = myMarkedMap.put(element, newValue); fireTableRowsUpdated(rowIndex, rowIndex); if (!newValue.equals(prevValue)) { notifyElementMarked(element, newValue); } }