text: public void setStringValue(String value) {if (!(fieldsData instanceof String)) {throw new IllegalArgumentException("cannot change value type from " + fieldsData.getClass().getSimpleName() + " to String");}if (value == null) {throw new IllegalArgumentException("value must not be null");}fieldsData = value;}