void () { FileEditorProvider.EP_FILE_EDITOR_PROVIDER.getPoint().registerExtension(new MyFileEditorProvider(), myFixture.getTestRootDisposable()); openFiles(""" <component name="FileEditorManager"> <leaf> <file pinned="false" current="true" current-in-tab="true"> <entry selected="true" file="file://$PROJECT_DIR$/src/1.txt"> <provider editor-type-id="mock" selected="true"> <state /> </provider> <provider editor-type-id="text-editor"> <state/> </provider> </entry> </file> </leaf> </component> """); FileEditor[] selectedEditors = manager.getSelectedEditors(); assertEquals(1, selectedEditors.length); assertEquals(MyFileEditorProvider.DEFAULT_FILE_EDITOR_NAME, selectedEditors[0].getName()); }