private function getRawType(\ReflectionProperty $property)
    {
        $matches = [];
        if (preg_match('/@var\s+([^\s]+)/', $property->getDocComment(), $matches)) {
            list(, $rawType) = $matches;
        } else {
            $rawType = 'mixed';
        }
        return $rawType;
    }