src/ParameterValidator.php
public function generator($className)
    {
        foreach ($this->generators as $generator) {
            if ($generator->supports($className)) {
                return $generator->createGenerator($className);
            }
        }

        return false;
    }
public function generator($className)
    {
        foreach ($this->generators as $generator) {
            if ($generator->supports($className)) {
                return $generator->createGenerator($className);
            }
        }

        return false;
    }
public function generator ( $ className ) { foreach ( $ this -> generators as $ generator ) { if ( $ generator -> supports ( $ className ) ) { return $ generator -> createGenerator ( $ className ) ; } } return false ; }
Generates a generator from class name rules

@param string $className

@return bool|\Magento\Framework\Code\Generator\EntityAbstract
Generates a generator from class name rules