void () { FileManager fileManager = myPsiManager.getFileManager(); VirtualFile file = createChildData(myPrjDir1, "a.txt"); PsiFile psiFile = fileManager.findFile(file); EventsTestListener listener = new EventsTestListener(); myPsiManager.addPsiTreeChangeListener(listener,getTestRootDisposable()); move(file, myPrjDir1.getParent()); String string = listener.getEventsString(); String expected = """ beforeChildMovement childMoved """; assertEquals(psiFile.getName(), expected, string); }