protected function extractTypeFromComment($comment)
    {
        if (preg_match('/^(.*)\(FridgeType::([a-zA-Z0-9]+)\)$/', $comment, $matches)) {
            if (empty($matches[1])) {
                $matches[1] = null;
            }

            return array($matches[1], strtolower($matches[2]));
        }

        return array($comment, null);
    }