def METHOD_NAME(self, instance):
    if instance.data.get("farm"):
        return
    with napi.maintained_selection():
        self.log.debug("instance: {}".format(instance))
        self.log.debug("instance.data[families]: {}".format(
            instance.data["families"]))
        if instance.data.get("bakePresets"):
            for o_name, o_data in instance.data["bakePresets"].items():
                self.render_thumbnail(instance, o_name, **o_data)
        else:
            viewer_process_swithes = {
                "bake_viewer_process": True,
                "bake_viewer_input_process": True
            }
            self.render_thumbnail(instance, None, **viewer_process_swithes)