void (@NotNull String name, @NotNull TextAttributes attributes) { switch (name) { case BACKGROUND_TAG -> { updateAttributes(HighlighterColors.TEXT, attributes); myColorsScheme.setColor(EditorColors.GUTTER_BACKGROUND, attributes.getBackgroundColor()); myColorsScheme.setColor(ConsoleViewContentType.CONSOLE_BACKGROUND_KEY, attributes.getBackgroundColor()); } case FOREGROUND_TAG -> { updateAttributes(HighlighterColors.TEXT, attributes); updateAttributes(DefaultLanguageHighlighterColors.IDENTIFIER, attributes); } case CURR_LINE_TAG -> myColorsScheme.setColor(EditorColors.CARET_ROW_COLOR, attributes.getForegroundColor()); case SELECTION_BACKGROUND_TAG -> myColorsScheme.setColor(EditorColors.SELECTION_BACKGROUND_COLOR, attributes.getBackgroundColor()); case SELECTION_FOREGROUND_TAG -> myColorsScheme.setColor(EditorColors.SELECTION_FOREGROUND_COLOR, attributes.getForegroundColor()); case BRACKET -> { myColorsScheme.setAttributes(DefaultLanguageHighlighterColors.BRACES, attributes); myColorsScheme.setAttributes(DefaultLanguageHighlighterColors.BRACKETS, attributes); myColorsScheme.setAttributes(DefaultLanguageHighlighterColors.PARENTHESES, attributes); } case OPERATOR_TAG -> { myColorsScheme.setAttributes(DefaultLanguageHighlighterColors.OPERATION_SIGN, attributes); myColorsScheme.setAttributes(DefaultLanguageHighlighterColors.COMMA, attributes); myColorsScheme.setAttributes(DefaultLanguageHighlighterColors.SEMICOLON, attributes); myColorsScheme.setAttributes(DefaultLanguageHighlighterColors.DOT, attributes); } case LINE_NUMBER_TAG -> { Color lineNumberColor = attributes.getForegroundColor(); myColorsScheme.setColor(EditorColors.LINE_NUMBERS_COLOR, lineNumberColor); myColorsScheme.setColor(EditorColors.TEARLINE_COLOR, lineNumberColor); myColorsScheme.setColor(EditorColors.RIGHT_MARGIN_COLOR, lineNumberColor); myColorsScheme.setColor(EditorColors.CARET_COLOR, lineNumberColor); } case LOCAL_VARIABLE_TAG -> { myColorsScheme.setAttributes(DefaultLanguageHighlighterColors.LOCAL_VARIABLE, attributes); myColorsScheme.setAttributes(DefaultLanguageHighlighterColors.MARKUP_TAG, attributes); } case LOCAL_VARIABLE_DECL_TAG -> { myColorsScheme.setAttributes(XmlHighlighterColors.HTML_TAG_NAME, attributes); myColorsScheme.setAttributes(XmlHighlighterColors.XML_TAG_NAME, attributes); } case FIELD_TAG -> { myColorsScheme.setAttributes(DefaultLanguageHighlighterColors.INSTANCE_FIELD, attributes); myColorsScheme.setAttributes(XmlHighlighterColors.XML_ATTRIBUTE_NAME, attributes); myColorsScheme.setAttributes(XmlHighlighterColors.HTML_ATTRIBUTE_NAME, attributes); } case OCCURENCE_TAG -> myColorsScheme.setAttributes(EditorColors.IDENTIFIER_UNDER_CARET_ATTRIBUTES, toBackgroundAttributes(attributes)); case WRITE_OCCURENCE_TAG -> myColorsScheme.setAttributes(EditorColors.WRITE_IDENTIFIER_UNDER_CARET_ATTRIBUTES, toBackgroundAttributes(attributes)); case SEARCH_RESULT_TAG -> myColorsScheme.setAttributes(EditorColors.SEARCH_RESULT_ATTRIBUTES, toBackgroundAttributes(attributes)); case FILTER_SEARCH_RESULT_TAG -> myColorsScheme.setAttributes(EditorColors.TEXT_SEARCH_RESULT_ATTRIBUTES, toBackgroundAttributes(attributes)); case STRING_TAG -> { myColorsScheme.setAttributes(DefaultLanguageHighlighterColors.STRING, attributes); TextAttributes validEscapeAttrs = attributes.clone(); validEscapeAttrs.setFontType(Font.BOLD); myColorsScheme.setAttributes(DefaultLanguageHighlighterColors.VALID_STRING_ESCAPE, validEscapeAttrs); } case KEYWORD_TAG -> { myColorsScheme.setAttributes(DefaultLanguageHighlighterColors.KEYWORD, attributes); myColorsScheme.setAttributes(DefaultLanguageHighlighterColors.MARKUP_ENTITY, attributes); } default -> { if (ECLIPSE_TO_IDEA_ATTR_MAP.containsKey(name)) { myColorsScheme.setAttributes(ECLIPSE_TO_IDEA_ATTR_MAP.get(name), attributes); } } } }