return in variable assignments or in value arguments that can be replaced with a safe cast.
The quick-fix replaces the unsafe cast with a safe cast.
Example
fun test(x: Any): Any? {
val y = x as String ?: return null
}
After the quick-fix is applied:
fun test(x: Any): Any? {
val y = x as? String ?: return null
}