Bug 46088 Create method quick fix declares Object as return type [quick fix]
When you write the following code Bla var = getMyBla(); and press Ctrl-1, you can have the method "getMyBla" created. However, if the type Bla is not (yet) known, the method gets declared as private Object getMyBla() { ... } If you press Ctrl-1 again, the import for Bla is added. If the order of the two quickfixes was reversed, you'd get the correct method declaration.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewMethodCompletionProposal.java
}
				lastMethod= i;
			}
		}
		return lastMethod;
	}
	
	private Name getInvocationName() {
		if (fNode instanceof MethodInvocation) {
			return ((MethodInvocation)fNode).getName();
		} else if (fNode instanceof SuperMethodInvocation) {
			return ((SuperMethodInvocation)fNode).getName();
		} else if (fNode instanceof ClassInstanceCreation) {
			return ((ClassInstanceCreation)fNode).getName();
		}		
		return null;
	}
	
	
	private String getMethodName() {
		if (fNode instanceof MethodInvocation) {
			return ((MethodInvocation)fNode).getName().getIdentifier();
		} else if (fNode instanceof SuperMethodInvocation) {
			return ((SuperMethodInvocation)fNode).getName().getIdentifier();
		} else {
			return fSenderBinding.getName(); 
		}
	}
	
	private int evaluateModifiers(ASTNode targetTypeDecl) {