code: public final void setMaxValue(final int maxValue) {
          Condition.INSTANCE.ensureGreater(maxValue, getMinValue(),
                  "The maximum value must be greater than the minimum value");
          this.maxValue = maxValue;
          setValue(Math.min(getValue(), maxValue));
      }
docs: Sets the maximum value, the preference should allow to choose.
  
  @param maxValue
  The maximum value, which should be set, as an {@link Integer} value. The value must
  be greater than the minimum value, that preference allows to choose