I mainly use foam because it retracts and compresses, as needed. But I have been known to use the occassional cut-up beer "coozy" (can cooler) in a moment of need!
I have one that I cut some pickup mounting springs into small lengths, and I use them under the pickup so that it is adjustable. My Ibanez had foam on the stock pups.