public class Foo { public void method1() { } public void method2() { } }