Migrate UselessImport to SyntaxTree

Fix BaseTreeVisitor on visit of methods: throws clause was ignored.