go to Settings → Inspections. Then you need to search a long list for an abusive check in which you can get the name by hanging on the warning marker in the margins. You can change the severity of the check, be it a mistake, a warning, etc. Or just turn it off completely.
Edit: if you are looking for “magic” in the settings, you get the following, which should be useful:

hvgotcodes
source share