decl.setBody(body);
	private MethodDeclaration getStub(AST ast) throws CoreException {		MethodDeclaration decl= ast.newMethodDeclaration();				decl.setConstructor(isConstructor());		decl.setModifiers(evaluateModifiers());		decl.setName(ast.newSimpleName(getMethodName()));				NameProposer nameProposer= new NameProposer();		List arguments= fArguments;		List params= decl.parameters();				int nArguments= arguments.size();		ArrayList names= new ArrayList(nArguments);		for (int i= 0; i < arguments.size(); i++) {			Expression elem= (Expression) arguments.get(i);			SingleVariableDeclaration param= ast.newSingleVariableDeclaration();			Type type= evaluateParameterType(ast, elem);			param.setType(type);			param.setName(ast.newSimpleName(getParameterName(nameProposer, names, elem, type)));			params.add(param);		}				Block body= ast.newBlock();		if (!isConstructor()) {			Type returnType= evaluateMethodType(ast);			if (returnType == null) {				decl.setReturnType(ast.newPrimitiveType(PrimitiveType.VOID));			} else {				decl.setReturnType(returnType);				ReturnStatement returnStatement= ast.newReturnStatement();				returnStatement.setExpression(ASTResolving.getInitExpression(returnType));				body.statements().add(returnStatement);			}		}		decl.setBody(body);		CodeGenerationSettings settings= JavaPreferencesSettings.getCodeGenerationSettings();		if (settings.createComments && !fSenderBinding.isAnonymous()) {			StringBuffer buf= new StringBuffer();			String[] namesArray= (String[]) names.toArray(new String[names.size()]);			String name= decl.getName().getIdentifier();			if (isConstructor()) {				StubUtility.genJavaDocStub("Constructor " + name, namesArray, null, null, buf);			} else {				String returnTypeSig= Signature.createTypeSignature(ASTNodes.asString(decl.getReturnType()), true);				StubUtility.genJavaDocStub("Method " + name, namesArray, returnTypeSig, null, buf);			}				Javadoc javadoc= ast.newJavadoc();			javadoc.setComment(buf.toString());			decl.setJavadoc(javadoc);		}		return decl;	}