/** {@inheritDoc} */
  @Override
  public void revertChanges() {
    for (PropertyWidget widget : widgets) {
      String propertyId = widget.getOptionId().toString();
      String previousValue = preferencesManager.getValue(propertyId);

      if (!widget.getSelectedValue().equals(previousValue)) {
        widget.selectPropertyValue(previousValue);
      }
    }
  }
  private void createAndAddWidget(@NotNull ErrorWarningsOptions option) {
    PropertyWidget widget = propertyFactory.create(option);

    String value = preferencesManager.getValue(option.toString());
    widget.selectPropertyValue(value);

    widget.setDelegate(JavaCompilerPreferencePresenter.this);

    widgets.add(widget);

    view.addProperty(widget);
  }