void () { EditorSettingsExternalizable settings = EditorSettingsExternalizable.getInstance(); settings.setEnsureNewLineAtEOF(true); configureFromFileText("x.txt", "xxx\n <caret>"); type(' '); FileDocumentManager.getInstance().saveAllDocuments(); checkResultByText("xxx\n <caret>\n"); }