if (selectedNode != null) { Expression qualifier= getQualifier(selectedNode); 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);  proposals.add(proposal); }
proposals.add(proposal);
	public static void addAccessToStaticProposals(ProblemPosition problemPos, List proposals) throws CoreException {		ICompilationUnit cu= problemPos.getCompilationUnit();		CompilationUnit astRoot= AST.parseCompilationUnit(cu, true);		ASTNode selectedNode= ASTResolving.findSelectedNode(astRoot, problemPos.getOffset(), problemPos.getLength());		if (selectedNode != null) {			Expression qualifier= getQualifier(selectedNode);			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);					proposals.add(proposal);				}			}		}	}