class ImmutableMapFactory {

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

}