Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration'
class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :(
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewVariableCompletionProposal.java
String insertString= null;
			
			ASTNode curr= fAstRoot;
			while (curr != null && !(curr instanceof Block)) {
				curr= curr.getParent();
			}
			if (curr != null) {
				Block block= (Block) curr;
				List statements= block.statements();
				if (!statements.isEmpty()) {
					ASTNode statement= (ASTNode) statements.get(0);
					if (statement instanceof SuperConstructorInvocation || statement instanceof ConstructorInvocation ) {
						if (!fAstRoot.equals(statement) && statements.size() > 1) {
							statement= (ASTNode) statements.get(1);
						}
					}	
					offset= statement.getStartPosition();
					int startLine= buffer.getLineOfOffset(offset);
					String indentString= CodeFormatterUtil.createIndentString(buffer.getLineIndent(startLine, fTabSize));
					String lineDelim= buffer.getLineDelimiter();
					insertString= StubUtility.codeFormat(fContent, 0, lineDelim) +  lineDelim + indentString;
				}
			}
			setTextRange(new TextRange(offset, 0));
			setText(insertString);
			super.connect(buffer);
		}	
	}
	
	private final static class AddParameterEdit extends SimpleTextEdit {