void (@NotNull EditorTextField editor, @NotNull String text) { final Document document = editor.getDocument(); WriteCommandAction.runWriteCommandAction(editor.getProject(), SSRBundle.message("modify.editor.content.command.name"), SS_GROUP, () -> document.replaceString(0, document.getTextLength(), text)); }