for (WayInPolygon way : ways) {
actionWays.add(way.way);
if (!way.insideToTheRight) {
ReverseWayResult res = ReverseWayAction.reverseWay(way.way);
Main.main.undoRedo.add(res.getReverseCommand());
cmdsCount++;
}
}
Pair<Way, Command> result = CombineWayAction.combineWaysWorker(actionWays);