public VisualStudioCommandFormatter(DTE dte, VisualStudioCommand cmd)
        {
            if (ReferenceEquals(null, dte)) throw new ArgumentNullException(nameof(dte));
            if (ReferenceEquals(null, cmd)) throw new ArgumentNullException(nameof(cmd));

            this.dte = dte;
            this.cmd = cmd;
        }
        public DocumentFormatService(DTE dte, Func<ExtensionsCfg> getExtensionCfg)
        {
            this.dte = dte;
            this.getExtensionCfg = getExtensionCfg;

            var formatCmd = new VisualStudioCommand("Edit.FormatDocument");
            formatter = new VisualStudioCommandFormatter(dte, formatCmd);
        }