private void copyCustomSettingsFrom(@NotNull CodeStyleSettings from) {
    myCustomCodeStyleSettingsManager.copyFrom(from);

    PACKAGES_TO_USE_IMPORT_ON_DEMAND.copyFrom(from.PACKAGES_TO_USE_IMPORT_ON_DEMAND);
    IMPORT_LAYOUT_TABLE.copyFrom(from.IMPORT_LAYOUT_TABLE);

    OTHER_INDENT_OPTIONS.copyFrom(from.OTHER_INDENT_OPTIONS);

    myAdditionalIndentOptions.clear();
    for (Map.Entry<FileType, IndentOptions> optionEntry : from.myAdditionalIndentOptions.entrySet()) {
      IndentOptions options = optionEntry.getValue();
      myAdditionalIndentOptions.put(optionEntry.getKey(), (IndentOptions)options.clone());
    }

    myCommonSettingsManager = from.myCommonSettingsManager.clone(this);

    myRepeatAnnotations.clear();
    myRepeatAnnotations.addAll(from.myRepeatAnnotations);
  }
private void copyCustomSettingsFrom(@NotNull CodeStyleSettings from)