void () { VirtualFile root = createChildDirectory(dir, "root"); String url = root.getUrl(); PsiTestUtil.addContentRoot(myModule, root); assertEquals(root, findContentEntry(url).getFile()); delete(root); assertNotNull(findContentEntry(url)); root = createChildDirectory(dir, "root"); assertEquals(root, findContentEntry(url).getFile()); }