asyncCallback.setName(ast.newSimpleName("callback"));
// add "callback" parameter
DomGenerics.parameters(methodDeclaration).add(asyncCallback);
}
// remove throws
methodDeclaration.thrownExceptions().clear();
} else if (bodyDeclaration instanceof FieldDeclaration
|| bodyDeclaration instanceof TypeDeclaration) {
// remove the fields and inner classes
I.remove();
}