void (AbstractColorsScheme newScheme) { if (consoleFontPreferences instanceof DelegatingFontPreferences) { newScheme.setUseEditorFontPreferencesInConsole(); } else { newScheme.setConsoleFontPreferences(consoleFontPreferences); } if (fontPreferences instanceof DelegatingFontPreferences) { newScheme.setUseAppFontPreferencesInEditor(); } else { newScheme.setFontPreferences(fontPreferences); } newScheme.attributesMap = new HashMap<>(attributesMap); newScheme.colorMap = new HashMap<>(colorMap); newScheme.version = version; }