static newRoot(idGenerator) {
    const context = new ForkContext(idGenerator, null, 1);

    context.add([CodePathSegment.newRoot(idGenerator.next())]);

    return context;
  }
Creates the root fork context.
@param {IdGenerator} idGenerator An identifier generator for segments.
@returns {ForkContext} New fork context.