All unique import:package within a large body of text
import:package
static Set<String> findAllImports(String contents) { return importRegex.allMatches(contents).map((m) => m[0]!).toSet(); }