@Override
  protected void resetImpl(final @NotNull CodeStyleSettings settings) {
    generalTab.myVisualGuides.setValue(settings.getDefaultSoftMargins());

    myExcludedScopesPanel.reset(settings);
    myExcludedPatternsPanel.reset(settings);

    generalTab.setLineSeparator(settings.LINE_SEPARATOR);
    generalTab.myRightMarginField.setValue(settings.getDefaultRightMargin());
    generalTab.myCbWrapWhenTypingReachesRightMargin.setSelected(settings.WRAP_WHEN_TYPING_REACHES_RIGHT_MARGIN);

    myAcceptRegularExpressionsCheckBox.setSelected(settings.FORMATTER_TAGS_ACCEPT_REGEXP);
    myEnableFormatterTags.setSelected(settings.FORMATTER_TAGS_ENABLED);

    myFormatterOnTagField.setText(settings.FORMATTER_ON_TAG);
    myFormatterOffTagField.setText(settings.FORMATTER_OFF_TAG);

    setFormatterTagControlsEnabled(settings.FORMATTER_TAGS_ENABLED);

    generalTab.myAutodetectIndentsBox.setSelected(settings.AUTODETECT_INDENTS);

    for (GeneralCodeStyleOptionsProvider option : myAdditionalOptions) {
      option.reset(settings);
    }
  }
@Override
  protected void resetImpl(final @NotNull CodeStyleSettings settings)