private function setProjectPhpCsProfile(SimpleXMLElement $xml)
    {
        $node = $this->xmlAccessor->getDescendant(
            $xml,
            [
                ['profile'],
                ['inspection_tool', ['class' => 'PhpCSValidationInspection']],
                ['option', ['name' => 'CUSTOM_RULESET_PATH']]
            ]
        );
        $this->xmlAccessor->setAttributes(
            $node,
            ['value' => '$PROJECT_DIR$/' . self::PROJECT_PHPCS]
        );
    }