protected function buildResolvingCallable($originalCallable)
    {
        $originalCallable = $this->checkAndReturnCallable($originalCallable);

        return function ($resolved, $laravel) use ($originalCallable) {
            call_user_func($originalCallable, $resolved, $this);
        };
    }