EditorColorsScheme () { EditorColorsManager manager = EditorColorsManager.getInstance(); EditorColorsScheme globalScheme = manager.getGlobalScheme(); EditorColorsScheme scheme = (EditorColorsScheme)globalScheme.clone(); manager.addColorScheme(scheme); manager.setGlobalScheme(scheme); Disposer.register(getTestRootDisposable(), () -> manager.setGlobalScheme(globalScheme)); return scheme; }