src/Server/Capabilities/CacheCapabilities.php
public function refresh(): CapabilitiesInterface
    {
        $this->names = null;
        $this->definitions = $this->definitions->clear();
        $this->filesystem->remove($this->directory);
        $this->capabilities->refresh();

        return $this;
    }
public function refresh(): CapabilitiesInterface
    {
        $this->names = null;
        $this->definitions = $this->definitions->clear();
        $this->filesystem->remove($this->directory);
        $this->capabilities->refresh();

        return $this;
    }
{@inheritdoc}