private static function resolveFacadeInstance($accessor)
    {
        if (is_object($accessor)) {
            return $accessor;
        }

        if (isset(static::$facadeInstances[$accessor])) {
            return static::$facadeInstances[$accessor];
        }

        if (static::$container->has($accessor)) {
            return static::$facadeInstances[$accessor] = static::$container->get($accessor);
        }

        throw new \LogicException(sprintf('Unknown facade accessor "%s"', print_r($accessor, true)));
    }