void () { VirtualFile moduleInfoFile = getFile("/src/module-info.java"); assertNotNull(moduleInfoFile); manager.openFile(moduleInfoFile); executeSomeCoroutineTasksAndDispatchAllInvocationEvents(getProject()); EditorTabbedContainer openedTabPane = manager.getCurrentWindow().getTabbedPane(); assertEquals(1, openedTabPane.getTabCount()); TabInfo firstTab = openedTabPane.getTabs().getTabAt(0); assertEquals("module-info.java (test.module)", firstTab.getText()); }