code: public final void replaceFirstOrChildAfter(@Nullable Node prev, Node newChild) {
      Node target = prev == null ? first : prev.next;
      checkNotNull(target, "prev doesn't have a sibling to replace.");
      replaceChild(target, newChild);
    }
docs: Detaches the child after the given child, or the first child if prev is null.