int (@NotNull EditorColorsScheme scheme) { if (scheme instanceof AbstractColorsScheme) { EditorColorsScheme original = ((AbstractColorsScheme)scheme).getOriginal(); if (original instanceof DefaultColorsScheme) { return DEFAULT_SCHEME_NAME.equals(original.getName()) ? DEFAULT_SCHEME : ONE_OF_DEFAULT_SCHEMES; } if (original != null && original.isReadOnly()) { if (ExperimentalUI.isNewUI()) { int i = Arrays.asList("High contrast", "Dark", "Light").indexOf(original.getName()); if (i >= 0) { return -(i + 1); } } return BUNDLED_SCHEME; } } return CUSTOM_SCHEME; }