public function setTypePreference($interfaceOrAbstract, array $preferredImplementations)
        {
            $key = ($this->hasAlias($interfaceOrAbstract)) ? 'alias:' . $interfaceOrAbstract : $interfaceOrAbstract;

            foreach ($preferredImplementations as $preferredImplementation) {
                $this->addTypePreference($key, $preferredImplementation);
            }

            return $this;
        }