protected function inflateIndex($class)
    {
        if ($class instanceof IndexInterface) {
            return $class;
        }

        if (!isset($this->inflated[$class])) {
            $this->inflated[$class] = $this->app->make($class);
        }

        return $this->inflated[$class];
    }