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;
    }