ASTRewriteCorrectionProposal proposal= new ASTRewriteCorrectionProposal(label, cu, rewrite, 1, image); proposal.addImport(typeBinding);
ASTRewriteCorrectionProposal proposal= new ASTRewriteCorrectionProposal(label, cu, rewrite, 2, image); proposal.addImport(declaringTypeBinding);
	public static void addInstanceAccessToStaticProposals(ICorrectionContext context, List proposals) throws CoreException {		ICompilationUnit cu= context.getCompilationUnit();		CompilationUnit astRoot= context.getASTRoot();		ASTNode selectedNode= context.getCoveredNode();		if (selectedNode == null) {			return;		}		Expression qualifier= null;		        if (selectedNode instanceof QualifiedName) {            qualifier= ((QualifiedName) selectedNode).getQualifier();        } else if (selectedNode instanceof SimpleName) {        	ASTNode parent= selectedNode.getParent();        	if (parent instanceof FieldAccess) {        		qualifier= ((FieldAccess) parent).getExpression();        	}        } else if (selectedNode instanceof MethodInvocation) {        	qualifier= ((MethodInvocation) selectedNode).getExpression();        }		if (qualifier != null) {			ITypeBinding typeBinding= ASTResolving.normalizeTypeBinding(qualifier.resolveTypeBinding());			if (typeBinding != null) {				ASTRewrite rewrite= new ASTRewrite(selectedNode.getParent());				rewrite.markAsReplaced(qualifier, astRoot.getAST().newSimpleName(typeBinding.getName()));								String label= CorrectionMessages.getString("LocalCorrectionsSubProcessor.changeaccesstostatic.description");				Image image= JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_CHANGE);				ASTRewriteCorrectionProposal proposal= new ASTRewriteCorrectionProposal(label, cu, rewrite, 1, image);				proposal.addImport(typeBinding);				proposal.ensureNoModifications();				proposals.add(proposal);			}											}	}