void (@NotNull DocumentEvent evt) { try { valueField.commitEdit(); final Number number = (Number)valueField.getValue(); ReflectionUtil.setField(BaseInspection.this.getClass(), BaseInspection.this, int.class, fieldName, number.intValue()); } catch (ParseException e) { // No luck this time. Will update the field when correct value is entered. } }