[System.Diagnostics.CodeAnalysis.SuppressMessage("Warning", "CS0618: Type or member is obsolete", Justification = "Some reason")] but it doesn't look correct. How can I achieve this?#pragma warning disable CS0618 // Type or member is obsolete on each single occurrence. And I want to avoid a global setting.