pub fn with_precompile_handle<R, F: FnOnce(&mut dyn PrecompileHandle) -> R>(
    f: F
) -> Option<R>