private boolean methodThrowsException(FunctionDeclaration method, Name exception) {
   ASTMatcher matcher = new ASTMatcher();
   for (Iterator iter = method.thrownExceptions().iterator(); iter.hasNext(); ) {
     Name thrown = (Name) iter.next();
     if (exception.subtreeMatch(matcher, thrown)) return true;
   }
   return false;
 }