class MyClass
{
void log() { // log stuff }
// log stuff
}
void method1() { this.log(); //do stuff 1 }
this.log();
//do stuff 1
void method2() { this.log(); //do stuff 2 } // ... 18 other methods that also call this.log()
//do stuff 2
// ... 18 other methods that also call this.log()