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