Runtime disable deprecation warnings

Is there a way to disable, then subsequently enable deprecation warnings runtime? Or equivalently, manipulating the depwarn fields in the runtime options. I found that JLOptions() just returns an immutable struct, but I am not sure how to change the state, or even if this is advisable.