void (@NotNull BiConsumer<? super K, ? super V> action) { if (myMap instanceof Map) { asMap().forEach(action); } else { Object[] array = (Object[])myMap; for (int i = 0; i < array.length; i += 2) { //noinspection unchecked action.accept((K)array[i], (V)array[i + 1]); } } }