One idea would be for it to work like code completion. Once you start writing a structure the rest is auto-suggested so it does not break the tree.