void (@NotNull LightEditorInfo editorInfo, int index) { LightEditFileEditorManagerImpl fileEditorManager = (LightEditFileEditorManagerImpl)FileEditorManager.getInstance(myProject); EditorComposite editorContainer = fileEditorManager.createEditorComposite(editorInfo); TabInfo tabInfo = new TabInfo(editorContainer.getComponent()) .setText(editorInfo.getFile().getPresentableName()) .setIcon(getFileTypeIcon(editorInfo)); tabInfo.setObject(new TabEditorData(editorInfo, editorContainer)); final DefaultActionGroup tabActions = new DefaultActionGroup(); tabActions.add(new CloseTabAction(editorInfo)); tabInfo.setTabLabelActions(tabActions, ActionPlaces.EDITOR_TAB); addTabSilently(tabInfo, index); select(tabInfo, true); asyncUpdateTab(tabInfo); myEditorManager.fireEditorSelected(editorInfo); myProject.getMessageBus().syncPublisher(FileEditorManagerListener.FILE_EDITOR_MANAGER).fileOpened( fileEditorManager, editorInfo.getFile() ); }