void (@NotNull PredefinedCodeStyle codeStyle) { codeStyle.apply(mySettings, myDefaultLanguage); ((CodeStyleSchemesModel.ModelSettings) mySettings).doWithLockedSettings(()->resetImpl(mySettings)); if (myModel != null) { myModel.fireAfterCurrentSettingsChanged(); } }