Perhaps even simpler (and certainly a little more efficient) would be:

addSymmetrically(map, boolean.class, Boolean.class), where

addSymmetrically =
  map.put(a, b);
  map.put(b, a);