code: public static <K, V> Map<K, V> createHashMap(int expectedMapSize) {
          final int initialCapacity = calculateInitialCapacity(expectedMapSize);
          return new HashMap<K, V>(initialCapacity, HASHMAP_DEFAULT_LOAD_FACTOR);
      }
docs: Utility method that creates an {@link java.util.HashMap} with its initialCapacity calculated
  to minimize rehash operations