I think this should check `widget instanceof WidgetViewModel`