pub fn execute_with_jni_env<T>( jvm: Jvm, f: impl FnOnce(&mut JNIEnv<'_>) -> Result<T>, ) -> Result<T>