This inspection reports redundant '?: return null':

fun foo(): Int? {
  ...
}

fun test() : Int? {
  return foo() ?: return null
}