public CodeStyleSettings clone() {
CodeStyleSettings clone = new CodeStyleSettings();
clone.copyFrom(this);
return clone;
}
<BUG>private void copyCustomSettingsFrom(@NotNull CodeStyleSettings from) {
myCustomSettings.clear();
for (final CustomCodeStyleSettings settings : from.getCustomSettingsValues()) {</BUG>
addCustomSettings((CustomCodeStyleSettings) settings.clone());
}

public CodeStyleSettings clone() {
CodeStyleSettings clone = new CodeStyleSettings();
clone.copyFrom(this);
return clone;
}
private void copyCustomSettingsFrom(@NotNull CodeStyleSettings from) {
synchronized (myCustomSettings) {
myCustomSettings.clear();
}
for (final CustomCodeStyleSettings settings : from.getCustomSettingsValues()) {
addCustomSettings((CustomCodeStyleSettings) settings.clone());
}
