private function addParamValueToList(
        \ReflectionMethod $reflectedMethod,
        AssignedParamValue $paramValue,
        &$orderedParamList
    ) {
        /* @var $methodParams ReflectionParameter[] */
        $methodParams = $reflectedMethod->getParameters();
        $nothingSet = true;
        for ($paramIndex = 0; $paramIndex < count($methodParams); $paramIndex++) {
            $reflectedParam = $methodParams[$paramIndex];
            if ($this->matcher->parameterMatches(
                $reflectedParam,
                $paramValue->getSelector()
            )) {
                $nothingSet = false;
                $valueSource = $paramValue->getValueSource();
                $orderedParamList[$paramIndex] = $this->resolve($valueSource);
            }
        }

        if ($nothingSet) {
            throw new UnableToBuild("param not set");
        }
    }