OldASTRewrite rewrite= new OldASTRewrite(inv.getParent()); rewrite.replace(inv, rewrite.createStringPlaceholder(str, ASTNode.METHOD_INVOCATION), null);
StringLiteral oldLiteral= (StringLiteral) node;
	private boolean getConvertProposal(IInvocationContext context, Collection resultingCollections) {		ASTNode node= getCoveringNode(context);			if (!(node instanceof SimpleName && node.getParent() instanceof MethodInvocation)) {			return false;					}		MethodInvocation inv= (MethodInvocation) node.getParent();		IMethodBinding binding= inv.resolveMethodBinding();		if (binding == null || Bindings.findTypeInHierarchy(binding.getDeclaringClass(), "org.eclipse.jdt.core.dom.ASTNode") == null) {			return false;		}		if (resultingCollections == null) {			return true;		}		String constName= toConstantName(getPropertyName(binding.getName()));					String str= ASTNodes.asString(inv.getExpression()) + ", ASTNodeConstants." + constName;		if ("List".equals(binding.getReturnType().getName())) {			str= "getChildList(" + str + ")";		} else if ("int".equals(binding.getReturnType().getName())) {			str= "getIntAttribute(" + str + ")";		} else if ("boolean".equals(binding.getReturnType().getName())) {			str= "getBooleanAttribute(" + str + ")";		} else {			str= "getChildNode(" + str + ")";		}				OldASTRewrite rewrite= new OldASTRewrite(inv.getParent());		rewrite.replace(inv, rewrite.createStringPlaceholder(str, ASTNode.METHOD_INVOCATION), null);				String label= "Use AST Constants";		Image image= JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_LOCAL);		ASTRewriteCorrectionProposal proposal= new ASTRewriteCorrectionProposal(label, context.getCompilationUnit(), rewrite, 10, image);		resultingCollections.add(proposal);						return false;	}