void () { getProjectTreeStructure().setProviders(new ClassesTreeStructureProvider(myProject), new FormMergerTreeStructureProvider(myProject)); myStructure.setShowMembers(true); final PsiClass formClass = findClassInDirectory("Form1"); myCommander.selectElementInRightPanel(formClass, formClass.getContainingFile().getVirtualFile()); checkListInRightPanel(""" [ .. ] Form1 Form1.form """); WriteCommandAction.runWriteCommandAction(null, () -> formClass.delete()); PlatformTestUtil.waitForAlarm(600); checkListInRightPanel(""" [ .. ] Class1 Class2.java Class4.java Form1.form Form2.form """); }