static CachedPosterizer cachePosterizer(IPosterizer posterizer) { if (posterizer == null) null; if (posterizer cast CachedPosterizer) ret posterizer; ret new CachedPosterizer(posterizer); }