TextEditorHolder (@NotNull EditorHolderFactory<TextEditorHolder> factory) { TextEditorHolder holder = super.createEditorHolder(factory); boolean[] forceReadOnly = TextDiffViewerUtil.checkForceReadOnly(myContext, myRequest); if (forceReadOnly[0]) holder.getEditor().setViewer(true); return holder; }