List<VariableDeclaration> astParameters = ((MethodDeclaration) methods.get(0).getInternal()).parameters();
ParameterSource<O> param = null;
for (VariableDeclaration declaration : astParameters)
{
VariableDeclaration copy = (VariableDeclaration) ASTNode.copySubtree(method.getAST(), declaration);
method.parameters().add(copy);
param = new ParameterImpl<O>(parent, copy);
}
return param;
}