public static function invokeMethod(
        $object,
        $methodName,
        array $arguments = []
    ) {
        $reflectedObject = new ReflectionObject($object);
        $reflectedMethod = $reflectedObject->getMethod($methodName);
        $reflectedMethod->setAccessible(true);
        $reflectedMethod->invokeArgs($object, $arguments);
    }