This inspection reports flatMap call should be simplified to flatten(), e.g. flatMap { it } to flatten().