internal DocumentId GetOrCreate(string name, DocumentMap previous)
            {
                var oldId = previous?.Get(name);

                if (oldId != null)
                {
                    Add(oldId, name);
                    return(oldId);
                }
                return(GetOrCreate(name));
            }