Attempt to solve the the diagnostic marker order ('note: previous declaration here' pointing to a source location before the main error marker) from D48100.
The approach is to pass a IsInherited parameters. If false, the order if the diagnostic marker is reversed.
The actual reversal is only implemented for two diagnoses: diag::err_mismatched_visibility and diag::err_ownership_returns_index_mismatch. Test cases not adapted.