src/Reflection/ReflectionMethod.php
public static function constructFromReflectionMethod(\ReflectionMethod $reflectionMethod): self
    {
        /**
         * @var self $instance
         */
        $instance                   = self::getSelfReflection()->newInstanceWithoutConstructor();
        $instance->reflectionMethod = $reflectionMethod;

        return $instance;
    }
public static function constructFromReflectionMethod(\ReflectionMethod $reflectionMethod): self
    {
        /**
         * @var self $instance
         */
        $instance                   = self::getSelfReflection()->newInstanceWithoutConstructor();
        $instance->reflectionMethod = $reflectionMethod;

        return $instance;
    }
For when we need to return instances of self from an existing instance of \ReflectionClass

@param \ReflectionMethod $reflectionMethod

@return self
@throws \ReflectionException