public static <K, V> Map<K, V> removeKeysWithNullValues(final Map<K, V> map) {
    return removeKeys(map, entry -> (entry.getValue() != null));
  }
Removes keys with null values in the Map.
<p>

@param map the Map from which to remove null key-value pairs.
@return the Map without any null keys or values.
@see #removeKeys
@see java.util.Map
geode-core/src/main/java/org/apache/geode/internal/util/CollectionUtils.java