GEninge HMDDevice in Unreal Engine 4.19 C++

Hey there, I’m working on a project with UE4.19 but I have to include a plugin that was made for UE4.15. When I try compiling the project I get an error with the following line of code:
GEngine->HMDDevice->… “HMDDevice” is not an element of “UEngine”.
So I thought I could just change this code to make the plugin running again, but I can’t find the way in UE4.19 to get the HMDDevice. Does someone of you maybe have a hint? Thansk very much!

HMDDevice APIs been moved to XRSystem, as same APIs are used for AR too which don’t need to be head mounted

Thank you very much for your answer! I’ve seen some examples with XRSystem, like
GEngine->XRSystem->GetHMDDevice(); but I still get compile errors because “pointer-to-incomplete is not valid”
Do I maybe have to include some specific files?

Ok I found the solution. In Addition, I had to include #include “IXRTrackingSystem.h” to get access to the XRSystem API.