Revert "SourceFormatter - Ignore files in modules when checking for unused variables for now to make the tests pass. Will revert this commit later and fix properly."

This reverts commit 44dd538fcfef0e57fa0c9ffcb2e70d240ce3adf8.
SourceFormatter - Rewrite logic that checks for unused vars and imports, so it can be outside the hardcoded docroot.
Source formatting - remove unused import
LPS-49260 Remove unused imports and vars
LPS-49175 Remove unused imports and vars