void (@NotNull PlaceInfo info, boolean requestFocus) { FileEditorManagerEx editorManager = getFileEditorManager(); FileEditorOpenOptions openOptions = new FileEditorOpenOptions() .withUsePreviewTab(info.isPreviewTab()) .withRequestFocus(requestFocus); var editorsWithProviders = editorManager.openFile(info.getFile(), info.getWindow(), openOptions); editorManager.setSelectedEditor(info.getFile(), info.getEditorTypeId()); var editors = editorsWithProviders.getAllEditors(); var providers = editorsWithProviders.getAllProviders(); for (int i = 0; i < editors.size(); i++) { String typeId = providers.get(i).getEditorTypeId(); if (typeId.equals(info.getEditorTypeId())) { editors.get(i).setState(info.getNavigationState()); } } }