Litigation can be a tool to right injustices. Or it can be a shakedown. Four would-be class actions against Starbucks Corp. feel a lot like the latter.

The coffee chain is being sued for allegedly cheating its customers by underfilling their drinks—as in one-quarter inch below the rim on lattes—and also by putting too much ice in cold drinks.