TextEditorHolder (@Nullable Project project, @NotNull DocumentContent content) { EditorEx editor = DiffUtil.createEditor(content.getDocument(), project, false, true); DiffUtil.configureEditor(editor, content, project); return new TextEditorHolder(project, editor); }