void () { if (myRootsToRefresh != null) { List<@NotNull NewVirtualFile> rootsToRefresh = ContainerUtil.mapNotNull( myRootsToRefresh, pathAndFs -> ManagingFS.getInstance().findRoot(pathAndFs.second.composeRootPath(pathAndFs.first), pathAndFs.second)); for (@NotNull NewVirtualFile root : rootsToRefresh) { root.markDirtyRecursively(); } boolean synchronous = ApplicationManager.getApplication().isUnitTestMode(); RefreshQueue.getInstance().refresh(!synchronous, true, null, rootsToRefresh); } }