Speculation – Should There Exist A Method Similar To A Heat Pump But For Desalination?

The idea is simple. A guess is that the heat pump can be considered to be a general method? Then why not take inspiration from that to create a device for desalination. I mean with such a device the energy requirement could possibly be somewhat lesser.