Inspectopedia 2026.1 Help

Function call on 'Flow' type could be simplified

Reports function calls on the Flow type which could be replaced by simplified one.

Using corresponding functions makes your code simpler.

The quick-fix replaces the function calls with another one.

Example:

fun test(flow: Flow<Any>) { flow.filter { it is String } }
fun test(flow: Flow<Any>) { flow.filterIsInstance<String>() }

Locating this inspection

By ID

Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.

SimplifiableFlowCall
Via Settings dialog

Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.

Settings or Preferences | Editor | Inspections | Kotlin | Coroutine inspections

Inspection ID: SimplifiableFlowCall

Suppressing Inspection

You can suppress this inspection by placing the following comment marker before the code fragment where you no longer want messages from this inspection to appear:

//noinspection SimplifiableFlowCall

More detailed instructions as well as other ways and options that you have can be found in the product documentation:

Inspection Details

By default bundled with:

IntelliJ IDEA 2026.1, Qodana for JVM 2026.1,

Last modified: 31 March 2026