private void forceSoftWraps() {
    EditorSettings editorSettings = editor.getSettings();

    if (editorSettings instanceof SettingsImpl) {
      ((SettingsImpl)editorSettings).setUseSoftWrapsQuiet();
    }
    else {
      LOG.error(new IllegalStateException("Unexpected implementation class of editor settings: " +
                                          "class=" + editorSettings.getClass() + "editor=" + editor));
    }

    editor.putUserData(EditorImpl.FORCED_SOFT_WRAPS, Boolean.TRUE);
    myUseSoftWraps = areSoftWrapsEnabledInEditor();
    Project project = editor.getProject();
    VirtualFile file = editor.getVirtualFile();
    if (project != null && file != null) {
      EditorNotifications.getInstance(project).updateNotifications(file);
    }
    ApplicationManager.getApplication().invokeLater(() -> ActivityTracker.getInstance().inc());
  }
private void forceSoftWraps()