Look for the method in all public methods declared in the class
or inherited by the class.
Note: this does not distinguish methods with the same signature
but different return types.
TODO: We may want to deal with methods that take parameters in the future