void () { final VirtualFile dir = createChildDirectory(myPrjDir1, "aaa"); EventsTestListener listener = new EventsTestListener(); myPsiManager.addPsiTreeChangeListener(listener,getTestRootDisposable()); PsiTestUtil.addSourceRoot(myModule, dir); String string = listener.getEventsString(); String expected = """ beforePropertyChange roots propertyChanged roots """; assertEquals(expected, string); }