title: Generate methods to forward calls of interface methods in NetBeans
body: <p>I have an interface <code>Foo</code> as follows</p>
  
  <pre><code>public interface Foo {
  
      void methodA();
      void methodB();
      void methodC();        
  
  }
  </code></pre>
  
  <p>I also have a class <code>Bar</code> implementing <code>Foo</code>, but I want the methods of Foo to be forwarded to a member of type <code>Foo</code> instead of implementing them directly or extending a concrete class that implements <code>Foo</code>:</p>
  
  <pre><code>public class Bar implements Foo {
  
      private Foo foo;
  
      void methodA() {
          foo.methodA();
      }
  
      // ...and so on...
  
  }
  </code></pre>
  
  <p>But I'm too lazy to type out each forwarding method, and this pattern seems common enough that I thought there must be a way to do this automagically - only I can't figure out how. Is it possible, and if so, how?</p>