void () { VirtualFile first = tempDirectory.newVirtualDirectory("first/"); VirtualFile second = tempDirectory.newVirtualDirectory("second/"); assertNothingToRescan(); indexableRoots.add(first); indexableRoots.add(second); assertRescanningIndexableSets(YES, first, second); assertNothingToRescan(); indexableRoots.clear(); indexableRoots.add(second); indexableRoots.add(first); assertNothingToRescan(); assertNothingToRescan(); indexableProjectRoots.add(first); indexableProjectRoots.add(second); assertRescanningIndexableSets(YES, first, second); assertNothingToRescan(); indexableProjectRoots.clear(); indexableProjectRoots.add(second); indexableProjectRoots.add(first); assertNothingToRescan(); }