Inspectopedia
 
2024.3

Suspicious collection method call

Warning
New
Last modified: 03 December 2024

Reports method calls on parameterized collections, where the actual argument type does not correspond to the collection's elements type.

Example:

In the inspection settings, you can disable warnings for potentially correct code like the following: