Get the tilemap that the tile is sitting on - Scriptable Tiles (runtime and editor)

How do I get the tilemap that a scriptable tile is sitting on? I want to know this because I want to use Tilemap.HasTile and Tilemap.GetTile on neighboring tiles. Does ITilemap.GetComponent() work? (The ITilemap instance will be the instance from GetTileData)

You can use ITilemap.GetComponent() from the ITilemap instance in GetTileData.