@gquemener is right, you have to rewrite `hasMethod` to permit recursivity. Moreover, you should even ask yourself if it is needed, because Reflection does not behave the same with traits and methods.