private function resolveParameters($parameters, $data, $labels = false)
    {
        $resolved = [];
        /** @var ReflectionParameter $reflectionParameter */
        foreach ($parameters as $reflectionParameter) {
            /** @noinspection PhpAssignmentInConditionInspection */
            $parameter = $this->parseParameter($reflectionParameter, $data, $labels);
            if (!is_null($parameter)) {
                $resolved[] = $parameter;
                continue;
            }
            /** @noinspection PhpAssignmentInConditionInspection */
            if ($parameterClassName = $this->extractClassName($reflectionParameter)) {
                $resolved[] = static::make($parameterClassName);
                continue;
            }
            $resolved[] = null;
        }
        return $resolved;
    }