ReturnStatement st3= (ReturnStatement) rewrite.createCopyPlaceholder(returnStatement);
ReturnStatement st3= (ReturnStatement) rewrite.createCopyTarget(returnStatement);
	public void testCollapsedTargetNodes2() 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(Object o) {\n");		buf.append("        {\n");		buf.append("            return;\n");		buf.append("        }\n");		buf.append("    }\n");		buf.append("}\n");		ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);		CompilationUnit astRoot= createAST(cu);		AST ast= astRoot.getAST();		ASTRewrite rewrite= new ASTRewrite(astRoot);				String str= "return;";		ReturnStatement returnStatement= (ReturnStatement) NodeFinder.perform(astRoot, buf.indexOf(str), str.length());				MethodInvocation newMethodInv1= ast.newMethodInvocation();		newMethodInv1.setName(ast.newSimpleName("foo1"));		ExpressionStatement st1= ast.newExpressionStatement(newMethodInv1);				MethodInvocation newMethodInv2= ast.newMethodInvocation();		newMethodInv2.setName(ast.newSimpleName("foo2"));		ExpressionStatement st2= ast.newExpressionStatement(newMethodInv2);				ReturnStatement st3= (ReturnStatement) rewrite.createCopyPlaceholder(returnStatement);				Block placeholder= rewrite.getCollapseTargetPlaceholder(new Statement[] { st1, st2, st3 });		rewrite.markAsReplaced(returnStatement.getParent(), placeholder);				String preview= evaluateRewrite(cu, rewrite);				buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("public class E {\n");		buf.append("    public void foo(Object o) {\n");		buf.append("        foo1();\n");		buf.append("        foo2();\n");		buf.append("        return;\n");		buf.append("    }\n");		buf.append("}\n");		String expected= buf.toString();				assertEqualString(preview, expected);	}