void (@Nullable EditorColorsScheme scheme) { if (scheme != null && scheme != myEditedScheme) { RainbowHighlighter.transferRainbowState(scheme, myEditedScheme); for (TextAttributesKey key : RainbowHighlighter.RAINBOW_COLOR_KEYS) { Color color = myEditedScheme.getAttributes(key).getForegroundColor(); if (!color.equals(scheme.getAttributes(key).getForegroundColor()) ) { scheme.setAttributes(key, RainbowHighlighter.createRainbowAttribute(color)); } } updateRainbowMarkup(); } }