docs: private static void setTextAndDiscardEdits(JTextComponent field, String value) {
  		if (value == null) {
  			return;
  		}
  
  		field.setText(value);
  		if (field instanceof ZapTextField) {
  			((ZapTextField) field).discardAllEdits();
  		} else if (field instanceof ZapTextArea) {
  			((ZapTextArea) field).discardAllEdits();
  		}
  	}