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;
  }