void () { FileEditorManagerEx editorManager = FileEditorManagerEx.getInstanceEx(getProject()); VirtualFile file = myFixture.copyFileToProject("TestBorder.form"); GuiEditor editorComponent = DumbModeTestUtils.computeInDumbModeSynchronously(getProject(), () -> { FileEditor[] editors = editorManager.openFile(file, true); assertEquals(1, editors.length); assertInstanceOf(editors[0], UIFormEditor.class); JComponent component = getEditorComponent(); assertInstanceOf(component, DumbUnawareHider.class); GuiEditor editor = UIUtil.uiTraverser(component).filter(GuiEditor.class).single(); assertNotNull("editor not found", editor); assertFalse(editor.isVisible()); return editor; }); assertTrue(editorComponent.isVisible()); }