Shock waves at final stages of cavity collapse in non-homogeneous liquid with divergenceless flow | Synapse