public void onInsert(@NotNull Consumer<? super N> consumer) {
    Consumer old = nodeInserted;
    nodeInserted = old == null ? consumer : old.andThen(consumer);
  }
public void onInsert(@NotNull Consumer<? super N> consumer)