public function invokeMethod(?Interfaces\JavaType $object = null, string $method, array $args = [])
    {
        $id = ($object === null) ? 0 : $object->__getJavaInternalObjectId();

        return self::getClient()->invokeMethod($id, $method, $args);
    }