pub fn option_from_java<'a, T: FromJava>( env: &mut JNIEnv<'a>, obj: JObject<'a>, ) -> Option<T>
Helper function to convert Java object to Option