class ImmutableMapFactory {

    public static <K, V> ImmutableMap<K, V> createFromKeys(
            Collection<K> keys,
            Supplier<V> valueSupplier) {
        return keys.stream()
                .collect(ImmutableMap.toImmutableMap(
                        key -> key,
                        key -> valueSupplier.get()));
    }

}