void () { if (myChange.isSkipped()) return; boolean leftEditable = myViewer.isEditable(Side.LEFT, false); boolean rightEditable = myViewer.isEditable(Side.RIGHT, false); if (rightEditable) { myOperations.add(createAcceptOperation(Side.LEFT)); } if (leftEditable) { myOperations.add(createAcceptOperation(Side.RIGHT)); } }