}
if (wayWithSelectedNode == null) {
parentWays.removeFirst();
}
for (Way w : parentWays) {
cmds.add(new ChangeCommand(w, modifyWay(selectedNode, w, cmds, newNodes)));
}
} else {
cmds.add(new ChangeCommand(selectedWay, modifyWay(selectedNode, selectedWay, cmds, newNodes)));
}
fixRelations(selectedNode, cmds, newNodes);
execCommands(cmds, newNodes);
}