protected function transformDependency(ReflectionParameter $parameter, $parameters)
    {
        // Get owner class
        $class = $parameter->getClass();

        // We skip parameters with a type hint to avoid replacing model bindings
        if ($class && !$this->alreadyInParameters($class->name, $parameters)) {
            return $this->container->make($class->name);
        }

        return null;
    }