returnStatement.setExpression(ASTResolving.getInitExpression(methodDecl.getReturnType()));
returnStatement.setExpression(ASTResolving.getInitExpression(methodDecl.getReturnType(), methodDecl.getExtraDimensions()));
	public static void addMissingReturnStatementProposals(ICorrectionContext context, List proposals) throws CoreException {		ICompilationUnit cu= context.getCompilationUnit();				ASTNode selectedNode= context.getCoveringNode();		if (selectedNode == null) {			return;		}		BodyDeclaration decl= ASTResolving.findParentBodyDeclaration(selectedNode);		if (decl instanceof MethodDeclaration) {			MethodDeclaration methodDecl= (MethodDeclaration) decl;			 			if (selectedNode instanceof ReturnStatement) {				ReturnStatement returnStatement= (ReturnStatement) selectedNode;				if (returnStatement.getExpression() == null) {					ASTRewrite rewrite= new ASTRewrite(methodDecl);										Expression expression= ASTResolving.getInitExpression(methodDecl.getReturnType());					if (expression != null) {						returnStatement.setExpression(expression);						rewrite.markAsInserted(expression);					}										Image image= JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_CHANGE);					String label= CorrectionMessages.getString("ReturnTypeSubProcessor.changereturnstatement.description");										ASTRewriteCorrectionProposal proposal= new ASTRewriteCorrectionProposal(label, cu, rewrite, 3, image);					proposal.ensureNoModifications();					proposals.add(proposal);				} 			} else {				Block block= methodDecl.getBody();				if (block == null) {					return;				}				AST ast= methodDecl.getAST();				ASTRewrite rewrite= new ASTRewrite(methodDecl);								List statements= block.statements();				ReturnStatement returnStatement= ast.newReturnStatement();				returnStatement.setExpression(ASTResolving.getInitExpression(methodDecl.getReturnType()));				statements.add(returnStatement);				rewrite.markAsInserted(returnStatement);								Image image= JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_CHANGE);				String label= CorrectionMessages.getString("ReturnTypeSubProcessor.addreturnstatement.description");				ASTRewriteCorrectionProposal proposal= new ASTRewriteCorrectionProposal(label, cu, rewrite, 3, image);				proposal.ensureNoModifications();				proposals.add(proposal);			} 		}		}