void (final String value) { CommandProcessor.getInstance().runUndoTransparentAction(() -> WriteAction.run(() -> { final T component = getComponent(); final Document document = getEditorTextField(component).getDocument(); document.replaceString(0, document.getTextLength(), value == null ? "" : value); })); }