Improve diagnostics in WidgetLookup