protected function makeDocuments(array $matches, array $ids, $documents, $text)
    {
        foreach ($ids as $key => $id)
        {
            $document = $documents->find($id);

            $parsedDocument = '';

            if ( ! is_null($document))
            {
                $parsedDocument = $document->present()->preview;
            }

            $text = str_replace($matches[$key], $parsedDocument, $text);
        }

        return $text;
    }