Tool to find unused imports

It does both. It builds the scopes and also keeps track of the imports.