protected function getReturnType(array $lines)
    {
        foreach ($lines as $line) {
            if (strpos($line, '@return') === 0) {
                $type = trim(str_replace('@return', '', $line));
                $type = str_replace('$this', 'self', $type);
                $type = explode('|', $type);
                return $type;
            }
        }
        return [];
    }