public function processMethodReturn(array $method, string $file, string $name)
    {
        if (!empty($method['docblock']['inheritdoc'])) {
            return;
        }

        if (empty($method['docblock']['return'])) {
            $this->warnings[] = [
                'type' => 'return-missing',
                'file' => $file,
                'class' => $name,
                'method' => $name,
                'line' => $method['line'],
            ];
        } elseif (is_array($method['return'])) {
            $docblockTypes = explode('|', $method['docblock']['return']);
            sort($docblockTypes);
            if ($method['return'] != $docblockTypes) {
                $warnings = true;
                $this->warnings[] = [
                    'type' => 'return-mismatch',
                    'file' => $file,
                    'class' => $name,
                    'method' => $name,
                    'line' => $method['line'],
                    'return-type' => implode('|', $method['return']),
                    'doc-type' => $method['docblock']['return'],
                ];
            }
        } elseif ($method['docblock']['return'] != $method['return']) {
            if ($method['return'] == 'array' && substr($method['docblock']['return'], -2) == '[]') {
                // Do nothing because this is fine.
            } else {
                $this->warnings[] = [
                    'type' => 'return-mismatch',
                    'file' => $file,
                    'class' => $name,
                    'method' => $name,
                    'line' => $method['line'],
                    'return-type' => $method['return'],
                    'doc-type' => $method['docblock']['return'],
                ];
            }
        }
    }