Whether file sits under the lib/ of any package in packages.
file
lib/
bool isLibraryFile(String file) => libraryRoot(file) != null;