void (@NotNull CodeStyleScheme scheme, @NotNull String newName) { CodeStyleSchemeImpl newScheme = new CodeStyleSchemeImpl(newName, false, scheme); myModel.addScheme(newScheme, false); myModel.removeScheme(scheme); myModel.selectScheme(newScheme, null); }