protected static function getMethodPropertyDoc($method, $object = null, $type = self::REFLECTION_METHOD, $parseMethod = self::DOC_COMMENT_SHORT)
    {
        try {
            //Method is already a \ReflectionMethod|\ReflectionProperty
            if ($method instanceof \ReflectionMethod || $method instanceof \ReflectionProperty) {
                $reflection = $method;
            //Method is string
            } else {
                //Check that object is not a \ReflectionClass
                $object = $object instanceof \ReflectionClass ? $object->getName() : $object;
                $reflection = $type === static::REFLECTION_METHOD
                    ? new \ReflectionMethod($object, $method)
                    : new \ReflectionProperty($object, $method);
            }
            $docData = static::$parseMethod($reflection);
        } catch (\ReflectionException $exception) {
            $docData = null;
        }
        return $docData;
    }