Reports redundant calls on collections, iterables, and sequences from the standard library.

This inspection detects two kinds of redundancy:

A quick-fix is available to omit the redundant call or replace it with a simpler alternative.

Examples:


  fun test(list: List<String>) {
      val x = list.filterNotNull() // can be simplified to 'list'
      val y = list.filterIsInstance<String>() // can be simplified to 'list'
  }

  fun test(list: List<Int>) {
      val x = list.mapNotNull { it + 1 } // can be replaced with 'map'
  }