Also, the style here is a bit wonky. It should be like this:

val readMetrics = 
  taskMetrics.shuffleReadMetrics match {