generate: Fix the threshold for inherited methods
We should not add methods until we hit the threshold: we should check the number of (visible) methods in ancestors and interfaces, and then decide whether or not to add the methods.
We should not add methods until we hit the threshold: we should check the number of (visible) methods in ancestors and interfaces, and then decide whether or not to add the methods.