static boolean isFieldModified(@NotNull JTextField textField, int initialValue) {
    try {
      int fieldValue = Integer.parseInt(textField.getText().trim());
      return fieldValue != initialValue;
    }
    catch (NumberFormatException e) {
      return false;
    }
  }
static boolean isFieldModified(@NotNull JTextField textField, int initialValue)