void () { FileManager fileManager = myPsiManager.getFileManager(); EventsTestListener listener = new EventsTestListener(); myPsiManager.addPsiTreeChangeListener(listener,getTestRootDisposable()); PsiDirectory psiDir = fileManager.findDirectory(myPrjDir1); createChildData(myPrjDir1, "a.txt"); String string = listener.getEventsString(); String expected = """ beforeChildAddition childAdded """; assertEquals(psiDir.getName(), expected, string); }