protected static function isType(array $types, ResolvedBlockTypeInterface $rType = null)
    {
        if (null === $rType) {
            return false;
        } elseif (!\in_array(\get_class($rType->getInnerType()), $types)) {
            return static::isType($types, $rType->getParent());
        }

        return true;
    }
protected static function isType(array $types, ResolvedBlockTypeInterface $rType = null)
    {
        if (null === $rType) {
            return false;
        } elseif (!\in_array(\get_class($rType->getInnerType()), $types)) {
            return static::isType($types, $rType->getParent());
        }

        return true;
    }
protected static function isType ( array $ types , ResolvedBlockTypeInterface $ rType = null ) { if ( null === $ rType ) { return false ; } elseif ( ! \ in_array ( \ get_class ( $ rType -> getInnerType ( ) ) , $ types ) ) { return static :: isType ( $ types , $ rType -> getParent ( ) ) ; } return true ; }
Check if the parent type of the current type is allowed.

@param string[]                   $types The class name of types
@param ResolvedBlockTypeInterface $rType The resolved block type

@return bool
Check if the parent type of the current type is allowed .