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

Example:

  List<Integer> list = getListOfElements();
  list.remove(""); // remove is highlighted

Use the checkbox below to report potentially correct code, like this:

  public boolean accept(Map<Integer, String> map, Object key) {
    return map.containsKey(key);
  }