extract method lookup to Object#nearest_method