title: Is there an elegant way to make every method in a class start with a certain block of code?
body: <p>I have a class where every method starts the same way:</p>
  
  <pre><code>class Foo {
    public void bar() {
      if (!fooIsEnabled) return;
      //...
    }
    public void baz() {
      if (!fooIsEnabled) return;
      //...
    }
    public void bat() {
      if (!fooIsEnabled) return;
      //...
    }
  }
  </code></pre>
  
  <p>Is there a nice way to require (and hopefully not write each time) the <code>fooIsEnabled</code> part for every public method in the class?</p>