Add hasWidgetType() helper method

No match.