// "Neuter" the original profiler by changing its vanilla-defined
// reference types to new dummy instances.
if (f.getType() == List.class) {
LSDUtil.setFinalField(f, proxy.orig, new NullList());
} else if (f.getType() == Map.class) {
LSDUtil.setFinalField(f, proxy.orig, new NullMap());
}
}
if (proxy.orig.getClass() == vanillaClass) {
// No need to keep a reference to the original profiler.