public static function create($template, array $availableTemplates, $code = 0, \Exception $prev = null)
    {
        return new static(sprintf(
            'Not found template with name "%s". Available templates: "%s"',
            $template,
            implode('", "', $availableTemplates)
        ), $code, $prev);
    }