private function patchWorkspaceConfig(
        FilesystemInterface $ideConfigFs
    ) {
        if (!$ideConfigFs->has('workspace.xml')) {
            return;
        }

        $xml = simplexml_load_string(
            $ideConfigFs->read('workspace.xml')
        );

        $node = $this->xmlAccessor->getDescendant(
            $xml,
            [
                ['component', ['name' => 'FileTemplateManagerImpl']],
                ['option', ['name' => 'SCHEME']]
            ]
        );

        $this->xmlAccessor->setAttributes(
            $node,
            ['value' => 'Project']
        );

        $ideConfigFs->put('workspace.xml', $xml->asXML());
    }