protected function setGrammarToBuilder(BuilderInterface $builder) { $builder->setGrammar($this->createGrammar($builder)); }