CodeStyleScheme (@NotNull String name) { CodeStyleScheme newScheme = createNewScheme(name, myProjectScheme); ((CodeStyleSchemeImpl)newScheme).setCodeStyleSettings( CodeStyleSettingsManager.getInstance().cloneSettings(getCloneSettings(myProjectScheme))); addScheme(newScheme, false); return newScheme; }