Adds newScheme at an appropriate location in the tree based on the currently selected node.
the scheme to add; must be a Template if selectedNodeNotRoot is null
null