How to access class field in directory visitor?

I will try adding that.

Is there a better base class to use instead of UStructViewerSettings?
I did not know which one to pick since this code does not seem to fall into any of the ones I could find.