Hi all, hi Tagir, This snippet of code is legal, javac has no trouble with it but IntelliJ rejects it. Collection<? extends E> coll = ... if (coll instanceof List<? extends E> list) { ... } cheers, Rémi