### Godot version

Godot 4.0.1.stable

### System information

Windows 10, Forward+

### Issue description

Example code:

```gdscript
@warning_ignore("shadowed_global_identifier")
static func print_debug(msg: String):
```

the warning is ignored by pressing [ignore] in the warnings panel.

pressing it multiple times results in:
```gdscript
@warning_ignore("shadowed_global_identifier", "shadowed_global_identifier")
```


### Steps to reproduce

Shadowing a global function with a method of script:

```gdscript
@warning_ignore("shadowed_global_identifier")
static func print_debug(msg: String):
```


### Minimal reproduction project

```gdscript
@warning_ignore("shadowed_global_identifier")
static func print_debug(msg: String):
    pass
```
} else {
			member->doc_description = get_doc_comment(doc_comment_line);
		}
	}
#endif 
	if (member->identifier != nullptr) {
		if (!((String)member->identifier->name).is_empty()) { 
#ifdef DEBUG_ENABLED
			List<MethodInfo> gdscript_funcs;
			GDScriptLanguage::get_singleton()->get_public_functions(&gdscript_funcs);
			for (MethodInfo &info : gdscript_funcs) {
				if (info.name == member->identifier->name) {
					push_warning(member->identifier, GDScriptWarning::SHADOWED_GLOBAL_IDENTIFIER, p_member_kind, member->identifier->name, "built-in function");
				}
			}
			if (Variant::has_utility_function(member->identifier->name)) {
				push_warning(member->identifier, GDScriptWarning::SHADOWED_GLOBAL_IDENTIFIER, p_member_kind, member->identifier->name, "built-in function");
			}
#endif
			if (current_class->members_indices.has(member->identifier->name)) {
				push_error(vformat(R"(%s "%s" has the same name as a previously declared %s.)", p_member_kind.capitalize(), member->identifier->name, current_class->get_member(member->identifier->name).get_type_name()), member->identifier);
			} else {
				current_class->add_member(member);
			}
		} else {
			current_class->add_member(member);
		}
	}
}
void GDScriptParser::parse_class_body(bool p_is_multiline) {