If I remember correctly, there is an extensive „Inspection“ settings page where you can enable / disable / set the levels (hoe much in-your/face) of exactly such checks.
Maybe this would suit you?
https://www.jetbrains.com/help/idea/code-inspection.html#acc...