void () { VirtualFile first = tempDirectory.newVirtualDirectory("first/"); VirtualFile second = tempDirectory.newVirtualDirectory("second/"); { VirtualFile constantAdditionalLib = tempDirectory.newVirtualDirectory("constantAdditionalLib/"); libraryRootsId1.add(constantAdditionalLib); assertRescanningLibraries(YES, constantAdditionalLib); } assertNothingToRescan(); libraryRootsNoId.add(first); assertRescanningLibraries(YES, first); assertRescanningLibraries(UNSURE, first); libraryRootsNoId.add(second); assertRescanningLibraries(YES, first, second); assertRescanningLibraries(UNSURE, first, second); libraryRootsNoId.remove(first); assertRescanningLibraries(YES, second); assertRescanningLibraries(UNSURE, second); }