void () { FileManager fileManager = myPsiManager.getFileManager(); VirtualFile file = createChildDirectory(myPrjDir1, "CVS"); PsiDirectory psiDirectory = fileManager.findDirectory(file.getParent()); EventsTestListener listener = new EventsTestListener(); myPsiManager.addPsiTreeChangeListener(listener,getTestRootDisposable()); rename(file, "dir"); String string = listener.getEventsString(); String expected = """ beforeChildAddition childAdded """; assertEquals(psiDirectory.getName(), expected, string); }