EditorImpl (@NotNull Document document, boolean isViewer, @Nullable Project project, @NotNull EditorKind kind) { Document hostDocument = document instanceof DocumentWindow ? ((DocumentWindow)document).getDelegate() : document; return doCreateEditor(project, hostDocument, isViewer, kind, null, null); }