void () { mySchemes = new HashMap<>(); for (EditorColorsScheme allScheme : EditorColorsManager.getInstance().getAllSchemes()) { MyColorScheme schemeDelegate = new MyColorScheme(allScheme); initScheme(schemeDelegate); mySchemes.put(schemeDelegate.getName(), schemeDelegate); } EditorColorsScheme globalScheme = EditorColorsManager.getInstance().getGlobalScheme(); if (EditorColorsManagerImpl.Companion.isTempScheme(globalScheme)) { MyColorScheme schemeDelegate = new MyTempColorScheme((AbstractColorsScheme)globalScheme); initScheme(schemeDelegate); mySchemes.put(schemeDelegate.getName(), schemeDelegate); } mySelectedScheme = mySchemes.get(globalScheme.getName()); assert mySelectedScheme != null : globalScheme.getName() + "; myschemes=" + mySchemes; }