&& nodesOnLevel.get(nodesOnLevel.size() - 1).size() > 0) {
currentNodeNumber =
createAdditionalTreeLevel(tree, nodesOnLevel, approxNumberOfChildren,
currentNodeNumber, numOfNodesToGenerate);
}
if (!tree.turnTreeCheckOn()) {
throw new IllegalStateException("Random tree generation failed!");
}
return tree;
}