code: private void mutateUp(@NotNull final Deque<ChildReferenceTransient> stack, MutableNode node) {
          while (!stack.isEmpty()) {
              final ChildReferenceTransient parent = stack.pop();
              final MutableNode mutableParent = parent.mutate(this);
              mutableParent.setChild(parent.firstByte, node);
              node = mutableParent;
          }
      }
docs: /*
  stack contains all ancestors of the node, stack.peek() is its parent.