private void saveInteractionComponent(CellServerState cellServerState) {
boolean collidable = collidableCB.isSelected();
boolean selectable = selectableCB.isSelected();
InteractionComponentServerState icss = (InteractionComponentServerState)
cellServerState.getComponentServerState(InteractionComponentServerState.class);
if (icss == null && collidable && selectable) {
// if both collidable and selectable are the default, we don't
// need to add the component
} else if (icss == null) {
// we need to add the component
icss = new InteractionComponentServerState();
icss.setCollidable(collidable);
icss.setSelectable(selectable);
addInteractionComponent(icss);
} else {
// update the interaction component
icss.setCollidable(collidable);
icss.setSelectable(selectable);
editor.addToUpdateList(icss);
}
}