withDiagnostics

Returns an otherwise identical configuration with explicitly selected diagnostics.

Apply this after the final generated copy call. Diagnostics are intentionally not part of the frozen data-class constructor, so copy only copies the original configuration fields.