Make class final and make diagnostics private[mutable].