public function loadBuffer(): void
    {
        if (self::$loaded) {
            return;
        }
        self::$loaded = true;

        foreach (self::$deferred as $class => $ids) {
            /** @var EntityRepository $repo */
            $repo = $this->registry->getRepository($class);
            $qb = $repo->createQueryBuilder('o', 'o.id');
            $entities = $qb->where($qb->expr()->in('o.id', array_values($ids)))
                           ->getQuery()
                           ->getResult();
            foreach ($entities as $entity) {
                if ($entity instanceof NodeInterface) {
                    self::$deferred[$class][$entity->getId()] = $entity;
                }
            }
        }
    }