Added option to prevent the generation of delegate methods for optional parameters. In the case of deferred methods references
these methods have already been generated on the method wrapper and there's no need to add them again for the actual anonymous
implementation (#1177)
Make sure that we generate return statements for method wrappers that delegate to a method that's not really (Java) void (#1177)
Make sure we don't generate delegate methods in the (anonymous) implementation for a deferred method reference (#1177)
Fixed test for #1177