Reduce the visibility of AbstractGenerator