refactor(transformer): use Set instead of a List for usedLibs