void (VirtualFile contentRoot, String dirUrl, int mustGenerateEvents) { myModuleRootListener.reset(); UIUtil.dispatchAllInvocationEvents(); VirtualFile dir = createChildDirectory(contentRoot, new File(dirUrl).getName()); myModuleRootListener.assertEventsCount(mustGenerateEvents); myModuleRootListener.reset(); UIUtil.dispatchAllInvocationEvents(); delete(dir); myModuleRootListener.assertEventsCount(mustGenerateEvents); }