The code would be more cleverer if it required me to import Set.class.  Right now the compression is a blind heuristic for major packages.  I was thinking of making its behaviour connected to the actual imports you use, but I was trying to steer away from a generalized code generator and this was headed in that direction.