code: protected static function instantiateServiceContainer()
      {
          $container = Container::getInstance();
  
          if (!$container) {
              $container = new Container();
              Container::setInstance($container);
          }
  
          return $container;
      }
docs: Instantiate service container if it's not instantiated yet.