Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix]
public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java
ExpressionStatement statement1= ast.newExpressionStatement(invocation1);
			
			rewrite.markAsInserted(statement1);
			
			MethodInvocation invocation2= ast.newMethodInvocation();
			invocation2.setName(ast.newSimpleName("foo"));
			ExpressionStatement statement2= ast.newExpressionStatement(invocation2);
			
			rewrite.markAsInserted(statement2);		
			
			List statements= methodDecl.getBody().statements();
			
			rewrite.markAsRemoved((ASTNode) statements.get(1));
			
			statements.add(2, statement2);
			statements.add(1, statement1);
			
			ASTRewriteCorrectionProposal proposal= new ASTRewriteCorrectionProposal("", cu, rewrite, 10, null);
			proposal.getCompilationUnitChange().setSave(true);
			
			proposal.apply(null);
			
			buf= new StringBuffer();
			buf.append("package test1;\n");
			buf.append("public class E {\n");
			buf.append("    public Object goo() {\n");
			buf.append("        i++; //comment\n");
			buf.append("        foo();\n");
			buf.append("        foo();\n");				
			buf.append("        return new Integer(3);\n");