var.setName(ast.newSimpleName("arg" + i));
var.setName(ast.newSimpleName(paramNames[i]));
	private MethodDeclaration createNewMethodDeclaration(AST ast, IMethodBinding binding, ASTRewrite rewrite, CodeGenerationSettings commentSettings) throws CoreException {		MethodDeclaration decl= ast.newMethodDeclaration();		decl.setModifiers(binding.getModifiers() & ~Modifier.ABSTRACT);		decl.setName(ast.newSimpleName(binding.getName()));				ITypeBinding returnTypeBinding= binding.getReturnType();		addImport(returnTypeBinding);				decl.setReturnType(ASTResolving.getTypeFromTypeBinding(ast, returnTypeBinding));				List parameters= decl.parameters();		ITypeBinding[] params= binding.getParameterTypes();		for (int i= 0; i < params.length; i++) {			ITypeBinding curr= params[i];			addImport(curr);					SingleVariableDeclaration var= ast.newSingleVariableDeclaration();			var.setType(ASTResolving.getTypeFromTypeBinding(ast, curr));			var.setName(ast.newSimpleName("arg" + i));			parameters.add(var);		}						List thrownExceptions= decl.thrownExceptions();		ITypeBinding[] excTypes= binding.getExceptionTypes();		for (int i= 0; i < excTypes.length; i++) {			ITypeBinding curr= excTypes[i];			addImport(curr);			thrownExceptions.add(ast.newSimpleName(curr.getName())); // can only be singe type, no array		}				Block body= ast.newBlock();		decl.setBody(body);				Expression expression= ASTResolving.getInitExpression(decl.getReturnType());		if (expression != null) {			ReturnStatement returnStatement= ast.newReturnStatement();			returnStatement.setExpression(expression);			body.statements().add(returnStatement);		}				if (commentSettings != null) {			StringBuffer buf= new StringBuffer();			String fullTypeName= Bindings.getFullyQualifiedName(binding.getDeclaringClass());			String[] fullParamNames= new String[params.length];			for (int i= 0; i < fullParamNames.length; i++) {				fullParamNames[i]= Bindings.getFullyQualifiedName(params[i]);			}			StubUtility.genJavaDocSeeTag(fullTypeName, binding.getName(), fullParamNames, commentSettings.createNonJavadocComments, binding.isDeprecated(), buf);			Javadoc javadoc;			if (commentSettings.createNonJavadocComments) {				String str= buf.substring(0, buf.length() -  1); // cut away last line delim				javadoc= (Javadoc) rewrite.createPlaceholder(str, ASTRewrite.JAVADOC);			} else {				javadoc= ast.newJavadoc();				javadoc.setComment(buf.toString());			}			decl.setJavadoc(javadoc);		}				return decl;	}