title: Define Type of Immutable Map With Builder
body: <p>I am trying to make a <code>Map&lt;BooleanSupplier, List&lt;String&gt;&gt;</code> as part of my flow I make the suppliers and then try to use an immutable map builder.</p>
  
  <p>Something like: </p>
  
  <pre><code> //Build up BooleanSuppliers
   Map&lt;BooleanSupplier, List&lt;String&gt;&gt; bsList = ImmutableMap.builder()
   .put(bs1, Collections.singletonList("bs1string"))
   .put(bs2, Arrays.asList("bs4","bs6"))
   ....
   .build();
  </code></pre>
  
  <p>The problem is that intellij says that the types are not convertible even when I do an explicit cast because the ImmutableMap is of type <code>&lt;Object, Object&gt;</code>. Is there a way to explicitly cast or initialize the immutable map builder to be of type <code>ImmutableMap&lt;BooleanSupplier, List&lt;String&gt;&gt;</code>?</p>