ArrayList proposals= new ArrayList();  JavaCorrectionProcessor.collectCorrections(context, new IProblemLocation[] { problem } , proposals);
ArrayList proposals= collectCorrections(context, problem);
	public void testTodoTasks7() 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("        /* TODO: XXX*/;\n");		buf.append("    }\n");		buf.append("}\n");		ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);				String str= "TODO: XXX";		AssistContext context= getCorrectionContext(cu, buf.toString().indexOf(str), 0);		ProblemLocation problem= new ProblemLocation(buf.toString().indexOf(str), str.length(), IProblem.Task, new String[0], true);		ArrayList proposals= new ArrayList();				JavaCorrectionProcessor.collectCorrections(context, new IProblemLocation[] { problem } , proposals);				assertNumberOfProposals(proposals, 1);		assertCorrectLabels(proposals);				CUCorrectionProposal proposal= (CUCorrectionProposal) proposals.get(0);		String preview= getPreviewContent(proposal);		buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("public class E {\n");		buf.append("    public void foo() {\n");		buf.append("        ;\n");		buf.append("    }\n");		buf.append("}\n");		assertEqualString(preview, buf.toString());		}