Reports collection.map(f).flatten(m) and suggests replacing it with collection.flatMap.
collection.map(f).flatten(m)
collection.flatMap
Example:
Seq(1, 10).map(i => Seq(i, i + 10)).flatten
After the quick-fix is applied:
Seq(1, 10).flatMap(i => Seq(i, i + 10))