@ApiStatus.Internal
  public void reinitSettings() {
    boolean softWrapsUsedBefore = myUseSoftWraps;
    myUseSoftWraps = areSoftWrapsEnabledInEditor();

    int tabWidthBefore = myTabWidth;
    myTabWidth = EditorUtil.getTabSize(editor);

    boolean fontsChanged = false;
    if (!myFontPreferences.equals(editor.getColorsScheme().getFontPreferences())) {
      fontsChanged = true;
      editor.getColorsScheme().getFontPreferences().copyTo(myFontPreferences);
      myPainter.reinit();
    }

    if (myUseSoftWraps != softWrapsUsedBefore ||
        myUseSoftWraps && tabWidthBefore >= 0 && myTabWidth != tabWidthBefore ||
        myUseSoftWraps && fontsChanged) {
      applianceManager.reset();
      deferredFoldRegions.clear();
      storage.removeAll();
      editor.myView.reinitSettings();
      if (AsyncEditorLoader.isEditorLoaded(editor)) {
        editor.getScrollingModel().scrollToCaret(ScrollType.CENTER);
      }
    }
  }
@ApiStatus.Internal
  public void reinitSettings()