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
/* non Java-doc
		 * @see TextEdit#connect
		 */
		public void connect(TextBuffer buffer) throws CoreException {
			if (fAstRoot == null) {
				return;
			}
			
			int offset= 0;
			String insertString= ""; 
			
			ASTNode curr= fAstRoot;
			while (curr != null && !(curr instanceof MethodDeclaration)) {
				curr= curr.getParent();
			}
			if (curr != null) {
				MethodDeclaration declaration= (MethodDeclaration) curr;
				List params= declaration.parameters();
				if (!params.isEmpty()) {
					ASTNode p= (ASTNode) params.get(params.size() - 1);
					offset= p.getStartPosition() + p.getLength();
					insertString= ", " + fContent; 
				} else {
					SimpleName name= declaration.getName();
					try {
						IScanner scanner= ASTResolving.createScanner(fCompilationUnit, name.getStartPosition());
						int nextNoken= scanner.getNextToken();
						while (nextNoken != ITerminalSymbols.TokenNameLPAREN) {
							nextNoken= scanner.getNextToken();
							if (nextNoken == ITerminalSymbols.TokenNameEOF) {