private Tree.Declaration getDeclaration(Tree.ClassBody that) {
   for (Tree.Statement s : that.getStatements()) {
     if (s instanceof Tree.Declaration) {
       Tree.Declaration d = (Tree.Declaration) s;
       if (d.getDeclarationModel() == declaration) {
         return d;
       }
     }
   }
   return null;
 }