How do I get StaticClass() to work on my derived classes?

Ok… just now I’m using the other method for this reason…
but basically in the creation of all my Widgets I had this problem.
I had to get the references to using blueprints.

So the code crashed here:

So a generic case would be

UMyUserWidget::StaticClass(); -->Boom!!