class ImmutableMapFactory {

    public static <K, V> ImmutableMap<K, V> filterByValues(
            Map<K, V> baseMap,
            Predicate<V> valueFilter) {
        return filter(baseMap, (key, value) -> valueFilter.test(value));
    }

}