public void copyFrom(@NotNull CommonCodeStyleSettings source) {
    copyPublicFields(source, this);
    if (myIndentOptions != null) {
      CommonCodeStyleSettings.IndentOptions sourceIndentOptions = source.getIndentOptions();
      if (sourceIndentOptions != null) {
        myIndentOptions.copyFrom(sourceIndentOptions);
      }
    }
    setSoftMargins(source.getSoftMargins());
  }
public void copyFrom(@NotNull CommonCodeStyleSettings source)