public function getParserFactory(): ?ParserFactory
    {
        if (!$this->hasParserFactory()) {
            $this->setParserFactory($this->getDefaultParserFactory());
        }
        return $this->parserFactory;
    }