ReturnStatement returnStatement = ast.newReturnStatement();
returnStatement.setExpression(methodInvocation);
block.statements().add(returnStatement); //add the return statement to the block
newMethod.setBody(block); // add the block to the method
newType.bodyDeclarations().add(newMethod); //add the method to the type
}
if (method.getName().getIdentifier().startsWith("set")) {
List<SingleVariableDeclaration> parameters = method.parameters();
if (parameters.size() != 1)