protected function collectRenderingObstacles($parameters, $requirements = true)
    {
        if ( ! is_array($parameters)) {
            return ['Parameters should be an array'];
        }
        if (true === $requirements) {
            $requirements = $this->getRequiredParameters();
        }
        $obstacles = [];
        foreach ($requirements as $requiredParameterName) {
            if (empty($parameters[$requiredParameterName])) {
                $obstacles[] = "Parameter '".$requiredParameterName."' is required";
            }
        }
        return $obstacles;
    }