Plus, type hinting is used for `$generator` in some other methods on this class.