def get_cached_tree_benefits(self, filter, fn): return get_cached_benefits('Plot', filter, fn)
def _benefits_for_class(cls, filter): benefits_fn = cls.benefits.benefits_for_filter compute_benefits = lambda: benefits_fn(filter.instance, filter) return get_cached_benefits(cls.__name__, filter, compute_benefits)