code: public function plugin($name, array $options = null)
      {
          $helper = $this->getTwigHelpers()->setRenderer($this);
  
          if ($helper->has($name)) {
              return $helper->get($name, $options);
          }
  
          return $this->getHelperPluginManager()->get($name, $options);
      }
docs: Get plugin instance
  
  @param  string     $name    Name of plugin to return
  @param  null|array $options Options to pass to plugin constructor (if not already instantiated)
  
  @return AbstractHelper|callable