docs: public void replaceChild(Node current, Node with) {
          double currentSplit = nodeSplits.get(current);
          int index = children.indexOf(current);
          children.remove(current);
          addChild(with, index, currentSplit);
          notifyStateChange();
      }