public function setParserOption($parserName, $key, $value = null)
    {
        if (!isset($this->parserOptions[$parserName])) {
            $this->parserOptions[$parserName] = [];
        }

        if (!is_array($key)) {
            $this->parserOptions[$parserName][$key] = $value;

            return $this;
        }

        foreach ($key as $name => $value) {
            $this->setParserOption($parserName, $name, $value);
        }

        return $this;
    }