public function isCollapsed(string $file): bool
    {
        $file = \str_replace('\\', '/', $file) . '/';
        foreach ($this->collapsePaths as $path) {
            $path = \str_replace('\\', '/', $path) . '/';
            if (\strpos($file, $path) === 0) {
                return true;
            }
        }

        return false;
    }