void (List<VirtualFile> roots) { VirtualFile first = tempDirectory.newVirtualDirectory("first/"); VirtualFile second = tempDirectory.newVirtualDirectory("second/"); assertNothingToRescan(); roots.add(first); assertRescanningIndexableSets(YES, first); assertNothingToRescan(); roots.add(second); assertRescanningIndexableSets(YES, second); assertNothingToRescan(); roots.remove(second); assertNothingToRescan(); }