original_string: public static function getValidParsers(ProjectTypeInterface $project, ParserDictionary $parserDictionary, EventDispatcherInterface $dispatcher) {
      $parserSet = $project::getFileParsers($parserDictionary);
      $event = new ParserSetEvent($project, $parserSet);
      $dispatcher->dispatch(ProjectTypeInterface::COLLECT_PARSER_SET, $event);
      $plugins = [];
      foreach ($event->getParserDefinitionSet() as $parserDefinition) {
        $plugins[] = $parserDictionary->createInstance($parserDefinition->getPluginId(), $parserDefinition, $project);
      }
      return $plugins;
    }
code: public static function getValidParsers(ProjectTypeInterface $project, ParserDictionary $parserDictionary, EventDispatcherInterface $dispatcher) {
      $parserSet = $project::getFileParsers($parserDictionary);
      $event = new ParserSetEvent($project, $parserSet);
      $dispatcher->dispatch(ProjectTypeInterface::COLLECT_PARSER_SET, $event);
      $plugins = [];
      foreach ($event->getParserDefinitionSet() as $parserDefinition) {
        $plugins[] = $parserDictionary->createInstance($parserDefinition->getPluginId(), $parserDefinition, $project);
      }
      return $plugins;
    }
code_tokens: public static function getValidParsers ( ProjectTypeInterface $ project , ParserDictionary $ parserDictionary , EventDispatcherInterface $ dispatcher ) { $ parserSet = $ project :: getFileParsers ( $ parserDictionary ) ; $ event = new ParserSetEvent ( $ project , $ parserSet ) ; $ dispatcher -> dispatch ( ProjectTypeInterface :: COLLECT_PARSER_SET , $ event ) ; $ plugins = [ ] ; foreach ( $ event -> getParserDefinitionSet ( ) as $ parserDefinition ) { $ plugins [ ] = $ parserDictionary -> createInstance ( $ parserDefinition -> getPluginId ( ) , $ parserDefinition , $ project ) ; } return $ plugins ; }
docstring: Gets an array of valid parser plugins for the project type.
  
  @param \Hedron\ProjectTypeInterface $project
  The project plugin for the current environment settings.
  @param \Hedron\ParserDictionary $parserDictionary
  The parser dictionary.
  @param \Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher
  The event dispatcher.
  
  @return \Hedron\FileParserInterface[]
  The valid parser plugins.
docstring_tokens: Gets an array of valid parser plugins for the project type .