This is not equivalent to the current implementation. The ``progressMonitor.isCanceled()`` check is done for every tree node.