It would probably work if you did it like this:

    class TaskMetrics {
      /** Total blocks fetched */
      var totalBlocksFetched: Option[Int] = None
         
      /** Reote blocks fetched */
      var remoteBlocksFetched: Option[Int] = None
      
      ...
    }