public function toStringFromYaml(array $parseResult)
    {
        $this->parameters = $parseResult;

        $this->removeNullValues();
        $this->removeInvalidKeys();
        $this->ensureDefaultBrush();

        $brush = SyntaxHighlighterBrush::fromIdentifierOrAlias($this->parameters['brush']);

        $this->eventContext->dispatch(
            RegisterCodeSnippetBrush::fromBrush($brush)
        );

        $this->formatValues();

        return $this->formatPairs();
    }