MethodDeclaration decl= (MethodDeclaration) selectedNode;
MethodDeclaration decl= ASTResolving.findParentMethodDeclaration(selectedNode); if (decl == null) { return; }
	public static void addIncompatibleReturnTypeProposals(IInvocationContext context, IProblemLocation problem, Collection proposals) throws JavaModelException {		CompilationUnit astRoot= context.getASTRoot();		ASTNode selectedNode= problem.getCoveringNode(astRoot);		if (!(selectedNode instanceof MethodDeclaration)) {			return;		}		MethodDeclaration decl= (MethodDeclaration) selectedNode;		IMethodBinding methodDeclBinding= decl.resolveBinding();		if (methodDeclBinding == null) {			return;		}		IMethodBinding overridden= Bindings.findOverriddenMethod(methodDeclBinding, false);		if (overridden == null || overridden.getReturnType() == methodDeclBinding.getReturnType()) {			return;		}		ICompilationUnit cu= context.getCompilationUnit();		IMethodBinding methodDecl= methodDeclBinding.getMethodDeclaration();		proposals.add(new TypeChangeCompletionProposal(cu, methodDecl, astRoot, overridden.getReturnType(), false, 8));		ICompilationUnit targetCu= cu;		IMethodBinding overriddenDecl= overridden.getMethodDeclaration();		ITypeBinding overridenDeclType= overriddenDecl.getDeclaringClass();		ITypeBinding returnType= methodDeclBinding.getReturnType();		if (overridenDeclType.isFromSource()) {			targetCu= ASTResolving.findCompilationUnitForBinding(cu, astRoot, overridenDeclType);		}		if (targetCu != null && ASTResolving.isUseableTypeInContext(returnType, overriddenDecl, false)) {			TypeChangeCompletionProposal proposal= new TypeChangeCompletionProposal(targetCu, overriddenDecl, astRoot, returnType, false, 7);			if (overridenDeclType.isInterface()) {				proposal.setDisplayName(Messages.format(CorrectionMessages.TypeMismatchSubProcessor_changereturnofimplemented_description, overriddenDecl.getName()));			} else {				proposal.setDisplayName(Messages.format(CorrectionMessages.TypeMismatchSubProcessor_changereturnofoverridden_description, overriddenDecl.getName()));			}			proposals.add(proposal);		}	}