void () { IoTestUtil.assumeWindows(); Ref<VirtualFile> subst = new Ref<>(); Ref<String> substPath = new Ref<>(); IoTestUtil.performTestOnWindowsSubst(tempDirectory.getRoot().getPath(), substRoot -> { substPath.set(substRoot.getPath()); subst.set(refreshAndFind(substRoot)); assertNotNull(substRoot.listFiles()); }); subst.get().refresh(false, true); VirtualFile[] roots = PersistentFS.getInstance().getRoots(LocalFileSystem.getInstance()); for (VirtualFile root : roots) { String prefix = StringUtil.commonPrefix(root.getPath(), substPath.get()); assertTrue(prefix, prefix.isEmpty()); } }