rewrite.markAsRemoved(thisExpression.getQualifier());
rewrite.markAsRemoved(thisExpression.getQualifier(), null);
	public void testThisExpression() throws Exception {		IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);		StringBuffer buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("public class E {\n");		buf.append("    public void foo() {\n");		buf.append("        return this;\n");				buf.append("        return Outer.this;\n");		buf.append("    }\n");		buf.append("}\n");			ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);				CompilationUnit astRoot= createAST(cu);		NewASTRewrite rewrite= new NewASTRewrite(astRoot.getAST());				AST ast= astRoot.getAST();				assertTrue("Parse errors", (astRoot.getFlags() & ASTNode.MALFORMED) == 0);		TypeDeclaration type= findTypeDeclaration(astRoot, "E");		MethodDeclaration methodDecl= findMethodDeclaration(type, "foo");		Block block= methodDecl.getBody();		List statements= block.statements();		assertTrue("Number of statements not 2", statements.size() == 2);		{ // add qualifier			ReturnStatement returnStatement= (ReturnStatement) statements.get(0);						ThisExpression thisExpression= (ThisExpression) returnStatement.getExpression();			SimpleName newExpression= ast.newSimpleName("X");			rewrite.markAsInsert(thisExpression, ThisExpression.QUALIFIER_PROPERTY, newExpression, null);		}		{ // remove qualifier			ReturnStatement returnStatement= (ReturnStatement) statements.get(1);						ThisExpression thisExpression= (ThisExpression) returnStatement.getExpression();			rewrite.markAsRemoved(thisExpression.getQualifier());		}					String preview= evaluateRewrite(cu, rewrite);				buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("public class E {\n");		buf.append("    public void foo() {\n");		buf.append("        return X.this;\n");				buf.append("        return this;\n");		buf.append("    }\n");		buf.append("}\n");			assertEqualString(preview, buf.toString());			}