Why am I needing to replace List.of() with Arrays.asList()? : <p>I've read <a href="https://stackoverflow.com/questions/46579074/what-is-the-difference-between-list-of-and-arrays-aslist">What is the difference between List.of and Arrays.asList?</a></p>

<p>What I'm not getting is why, after some dependency upgrades in my Maven pom.xml, suddenly all my</p>

<pre><code>List.of(FLIGHT1_SPEND_AGG, FLIGHT1_IMPRESSIONS_AGG)
</code></pre>

<p>no longer compile. When I type <code>List.</code> in IntelliJ, autocomplete only comes up with the <code>class</code> member. I thought maybe I'm not importing <code>java.util.List</code>? So explicitly specified it, but still:</p>

<p><a href="https://i.stack.imgur.com/OLN0w.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OLN0w.png" alt="enter image description here"></a></p>

<p>I'm using Java 11, and I see the method exists here: <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/List.html" rel="nofollow noreferrer">https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/List.html</a>.</p>

<p>Why can't I seem to use it? I must be doing something stupid...</p>
