protected function replaceFileContent($path, array $headers)
    {
        $content = $this->files->get($path);
        $this->files->put($path, str_replace([
            'DummyNamespace',
            'DummyAutoload',
            'dummy_path'
        ], [
            $this->getNamespace($headers['plugin_namespace']),
            $this->getAutoloadNamespace($headers['plugin_namespace']),
            $this->getPluginPath()
        ], $content), true);
    }