private void initAll() {
    EditorColorsScheme globalScheme = EditorColorsManager.getInstance().getGlobalScheme();

    myModel.runBatchedUpdate(this, () -> {
      myModel.dropSchemes(this);
      for (EditorColorsScheme allScheme : EditorColorsManager.getInstance().getAllSchemes()) {
        MyColorScheme schemeDelegate = new MyColorScheme(allScheme);
        initScheme(schemeDelegate);
        myModel.putScheme(schemeDelegate.getName(), schemeDelegate, this);
      }

      EditorColorsScheme schemeToSelect = null;
      String preselectedSchemeName = myModel.getPreselectedSchemeName();
      if (preselectedSchemeName != null) {
        schemeToSelect = myModel.getScheme(preselectedSchemeName);
        myModel.setPreselectedSchemeName(null, this);
      }

      if (schemeToSelect == null) {
        schemeToSelect = globalScheme;

        if (EditorColorsManagerImpl.Companion.isTempScheme(schemeToSelect)) {
          MyColorScheme schemeDelegate = new MyTempColorScheme((AbstractColorsScheme)schemeToSelect);
          initScheme(schemeDelegate);
          myModel.putScheme(schemeDelegate.getName(), schemeDelegate, this);
        }
      }

      myModel.setSelectedScheme(myModel.getScheme(schemeToSelect.getName()), this);
      assert myModel.getSelectedScheme() != null :
        schemeToSelect.getName() + "; mySchemes=" +
        ContainerUtil.map(myModel.schemesKeySet(), key -> "(" + key + ": " + myModel.getScheme(key) + ")");
    });
  }
private void initAll()