nit: switch order of Map and HashSet