void () { FileEditorProvider.EP_FILE_EDITOR_PROVIDER.getPoint().registerExtension(new MyFileEditorProvider(), myFixture.getTestRootDisposable()); FileEditorProvider.EP_FILE_EDITOR_PROVIDER.getPoint().registerExtension(new MyDumbAwareProvider(), myFixture.getTestRootDisposable()); VirtualFile createdFile = DumbModeTestUtils.computeInDumbModeSynchronously(getProject(), () -> { VirtualFile file = createFile("/src/foo.bar", new byte[]{1, 0, 2, 3}); FileEditor[] editors = manager.openFile(file, false); assertEquals(ContainerUtil.map(editors, ed-> ed + " of " + ed.getClass()).toString(), 1, editors.length); return file; }); manager.waitForAsyncUpdateOnDumbModeFinished(); executeSomeCoroutineTasksAndDispatchAllInvocationEvents(getProject()); assertEquals(2, manager.getAllEditors(createdFile).length); }