Bug 123946 [quick assist] "Add keyword 'final' to all unchanged variables and properties"
This function can be provide with the "Format" function
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AssistQuickFixTest.java
buf.append("public class E {\n");
		buf.append("    public void foo() {\n");
		buf.append("        int i = 10;\n");
		buf.append("        int k = 10;\n");
		buf.append("        k++;\n");
		buf.append("        int h = 10;\n");
		buf.append("        int j = 10;\n");
		buf.append("        j++;\n");
		buf.append("        System.out.println(k);\n");
		buf.append("        System.out.println(j);\n");
		buf.append("        System.out.println(i);\n");
		buf.append("        System.out.println(h);\n");
		buf.append("        i++;\n");
		buf.append("    }\n");
		buf.append("}\n");
		buf.append("\n");
		ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);
		
		StringBuffer selection= new StringBuffer();
		selection.append("        j++;\n");
		selection.append("        System.out.println(k);\n");
		selection.append("        System.out.println(j);\n");
		selection.append("        System.out.println(i);\n");
		selection.append("        System.out.println(h);\n");
		
		AssistContext context= getCorrectionContext(cu, buf.toString().indexOf(selection.toString()), selection.toString().length());
		List proposals= collectAssists(context, false);
		
		assertNumberOfProposals(proposals, 9);
		assertCorrectLabels(proposals);