Suspicious collection method call
Reports method calls on parameterized collections, where the actual argument type does not correspond to the collection's elements type.
In the inspection settings, you can disable warnings for potentially correct code like the following:
Report suspicious but possibly correct method calls
IntelliJ IDEA 2023.3, Qodana for JVM 2023.3