public CategoryEditorFormatMapUpdater(IThemeService themeService, ITextAppearanceCategory textAppearanceCategory, IEditorFormatDefinitionService editorFormatDefinitionService, IEditorFormatMap editorFormatMap)
        {
            if (themeService == null)
            {
                throw new ArgumentNullException(nameof(themeService));
            }
            if (textAppearanceCategory == null)
            {
                throw new ArgumentNullException(nameof(textAppearanceCategory));
            }
            if (editorFormatDefinitionService == null)
            {
                throw new ArgumentNullException(nameof(editorFormatDefinitionService));
            }
            if (editorFormatMap == null)
            {
                throw new ArgumentNullException(nameof(editorFormatMap));
            }
            this.themeService                  = themeService;
            this.textAppearanceCategory        = textAppearanceCategory;
            this.editorFormatDefinitionService = editorFormatDefinitionService;
            this.editorFormatMap               = editorFormatMap;

            themeService.ThemeChangedHighPriority  += ThemeService_ThemeChangedHighPriority;
            textAppearanceCategory.SettingsChanged += TextAppearanceCategory_SettingsChanged;
            InitializeAll();
        }
		public CategoryEditorFormatMapUpdater(IThemeService themeService, ITextAppearanceCategory textAppearanceCategory, IEditorFormatDefinitionService editorFormatDefinitionService, IEditorFormatMap editorFormatMap) {
			if (themeService == null)
				throw new ArgumentNullException(nameof(themeService));
			if (textAppearanceCategory == null)
				throw new ArgumentNullException(nameof(textAppearanceCategory));
			if (editorFormatDefinitionService == null)
				throw new ArgumentNullException(nameof(editorFormatDefinitionService));
			if (editorFormatMap == null)
				throw new ArgumentNullException(nameof(editorFormatMap));
			this.themeService = themeService;
			this.textAppearanceCategory = textAppearanceCategory;
			this.editorFormatDefinitionService = editorFormatDefinitionService;
			this.editorFormatMap = editorFormatMap;

			themeService.ThemeChangedHighPriority += ThemeService_ThemeChangedHighPriority;
			textAppearanceCategory.SettingsChanged += TextAppearanceCategory_SettingsChanged;
			InitializeAll();
		}