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