code: @SuppressWarnings("unchecked") // Safe as long as the javadocs are followed
    static <K, V> ImmutableMapEntry<K, V>[] createEntryArray(int size) {
      return new ImmutableMapEntry[size];
    }
docs: Creates an {@code ImmutableMapEntry} array to hold parameterized entries. The
  result must never be upcast back to ImmutableMapEntry[] (or Object[], etc.), or
  allowed to escape the class.