Is there a straight forward way to get the OSMID of a GraphHopper Way/Node in 2019?

I was using Map Matching source from Github and though the comments say that the nodes are actual nodes, those are still not OSM nodes/way ids. Searched around and there were some solution which are not currently maintained. Can somebody suggest me a way to get the OSM Ids from the GH Ids?