code: public function createService(ServiceLocatorInterface $serviceLocator)
      {
          /* @var \Zend\ServiceManager\AbstractPluginManager $serviceLocator */
          $select = $this($serviceLocator, self::class, $this->options);
          $this->options = [];
  
          return $select;
      }
docs: Create a tree select form element.
  
  @internal
  proxies to {@link __invoke}.
  
  @param ServiceLocatorInterface $serviceLocator
  @return Select