getAddresses() now returns a set