How to get a reference to the world in UEditorSubsystem?

How to get a reference to the world in UEditorSubsystem?

To make subsystems to make it easier for game designers, often subsystems are created from UEditorSubsystem, but you can't get a reference to UWorld directly in it.
I found this way, but it's not valid for me, so I kept looking in the engine code and found this way: