public static void addNativeMethodProposals(IAssistContext context, IProblemLocation problem, Collection proposals) throws CoreException {
public static void addNativeMethodProposals(IInvocationContext context, IProblemLocation problem, Collection proposals) throws CoreException {
	public static void addNativeMethodProposals(IAssistContext context, IProblemLocation problem, Collection proposals) throws CoreException {		ICompilationUnit cu= context.getCompilationUnit();		CompilationUnit astRoot= context.getASTRoot();		ASTNode selectedNode= problem.getCoveringNode(context);		if (selectedNode == null) {			return;		}		MethodDeclaration decl;		if (selectedNode instanceof SimpleName) {			decl= (MethodDeclaration) selectedNode.getParent();		} else if (selectedNode instanceof MethodDeclaration) {			decl= (MethodDeclaration) selectedNode;		} else {			return;		}			{			ASTRewrite rewrite= new ASTRewrite(decl.getParent());						AST ast= astRoot.getAST();			MethodDeclaration modifiedNode= ast.newMethodDeclaration();			modifiedNode.setConstructor(decl.isConstructor());			modifiedNode.setExtraDimensions(decl.getExtraDimensions());			modifiedNode.setModifiers(decl.getModifiers() & ~Modifier.NATIVE);			rewrite.markAsModified(decl, modifiedNode);			Block newBody= ast.newBlock();			rewrite.markAsInserted(newBody);			decl.setBody(newBody);			Expression expr= ASTNodeFactory.newDefaultExpression(ast, decl.getReturnType(), decl.getExtraDimensions());			if (expr != null) {				ReturnStatement returnStatement= ast.newReturnStatement();				returnStatement.setExpression(expr);				newBody.statements().add(returnStatement);			}				String label= CorrectionMessages.getString("ModifierCorrectionSubProcessor.removenative.description"); //$NON-NLS-1$			Image image= JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_CHANGE);			ASTRewriteCorrectionProposal proposal= new ASTRewriteCorrectionProposal(label, cu, rewrite, 6, image);			proposal.ensureNoModifications();			proposals.add(proposal);		}				if (decl.getBody() != null) {			ASTRewrite rewrite= new ASTRewrite(decl.getParent());			rewrite.markAsRemoved(decl.getBody());						String label= CorrectionMessages.getString("ModifierCorrectionSubProcessor.removebody.description"); //$NON-NLS-1$			Image image= JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_CHANGE);			ASTRewriteCorrectionProposal proposal2= new ASTRewriteCorrectionProposal(label, cu, rewrite, 5, image);			proposal2.ensureNoModifications();			proposals.add(proposal2);		}			}