e.g: class A { func method1() { } } class B { func method1() { } } expect that print all of two methods but not