void (String text) { init(text, PlainTextFileType.INSTANCE); setEditorVisibleSize(1000, 1000); getUndoManager().setOverriddenEditorProvider(new CurrentEditorProvider() { @Override public FileEditor getCurrentEditor(@Nullable Project project) { return getTextEditor(); } }); }