void () { VirtualFile temp = getTempDir().createVirtualDir(); String dirName = "xxx"; VirtualFilePointerManager virtualFilePointerManager = VirtualFilePointerManager.getInstance(); for (int i = 0; i < 10_000; i++) { virtualFilePointerManager.create(temp.getUrl() + "/" + dirName + "/" + i, getTestRootDisposable(), null); } VirtualFile xxx = createChildDirectory(temp, dirName); PlatformTestUtil.startPerformanceTest("time wasted in ProjectRootManagerComponent.before/afterValidityChanged()", 10000, ()->{ for (int i = 0; i < 100; i++) { rename(xxx, "yyy"); rename(xxx, dirName); } }).assertTiming(); }