Name anonymous classes when assigning to a constant