public static function getReflectionCallableName(
        ReflectionFunctionAbstract $reflector
    ) {
        $class = $reflector instanceof ReflectionFunction
            ? $reflector->getClosureScopeClass()
            : $reflector->getDeclaringClass();
        if (is_null($class)) {
            return $reflector->getName();
        }
        return $class->getName() . '::' . $reflector->getName();
    }