Both `apply_to_diagnostic_items` and `show_diagnostics` are local functions and cannot be called by users.