void () { myDisplayName = myCopyrightProfile.getName(); DocumentUtil.writeInRunUndoTransparentAction(() -> { String notice = myCopyrightProfile.getNotice(); if (notice != null) { myEditor.getDocument().setText(EntityUtil.decode(notice)); myEditor.setCaretPosition(0); myEditor.revalidate(); } }); myKeywordTf.setText(myCopyrightProfile.getKeyword()); myAllowReplaceTextField.setText(myCopyrightProfile.getAllowReplaceRegexp()); }