private function checkForMissingDesc(string $type, array $returnParts): void
    {
        if (!in_array($type, $this->excludedTypes) && (count($returnParts) <= 1) && $this->descAsWarning) {
            throw (new CodeWarning(
                static::CODE_MISSING_RETURN_DESC,
                self::MESSAGE_MISSING_RETURN_DESC,
                $this->stackPos
            ))->setToken($this->token);
        }
    }