EditorImpl (@Nullable Project project, @NotNull Document document, boolean isViewer, @NotNull EditorKind kind, @Nullable VirtualFile file, @Nullable EditorHighlighter highlighter) { EditorImpl editor = new EditorImpl(document, isViewer, project, kind, file, highlighter); ClientEditorManager editorManager = ClientEditorManager.getCurrentInstance(); editorManager.editorCreated(editor); myEditorEventMulticaster.registerEditor(editor); EditorFactoryEvent event = new EditorFactoryEvent(this, editor); myEditorFactoryEventDispatcher.getMulticaster().editorCreated(event); EP.forEachExtensionSafe(it -> it.editorCreated(event)); if (LOG.isDebugEnabled()) { LOG.debug("number of editors after create: " + editorManager.editors().count()); } return editor; }