### Godot version

4.0 dev_build

### System information

Ubuntu 22.04.1

### Issue description

The "Lookup Symbol" button don't appears for custorm class names.
Related issues: #68475,  #73167.
I tried apply #68311, #69473 and #73196. It don't helps.
The `Ctrl+LMB` works right for all cases.

### Steps to reproduce

Right click to the `CustomClassA` symbol in the `custom_class_b.gd` anywhere. The `Lookup Symbol` button don't appears in the context menu.

### Minimal reproduction project

Example from  #68475.
if (line >= 0) {
					continue;
				}
				
				bool found_inherited_function = false;
				Ref<Script> inherited_script = script->get_base_script();
				while (!inherited_script.is_null()) {
					if (inherited_script->has_method(method)) {
						found_inherited_function = true;
						break;
					}
					inherited_script = inherited_script->get_base_script();
				}
				if (!found_inherited_function) {
					missing_connections.push_back(connection);
				}
			}
		}
	}
	
	methods_found.clear();
	for (int i = 0; i < functions.size(); i++) {
		StringName name = StringName(functions[i].get_slice(":", 0));
		if (methods_found.has(name)) {
			continue;
		}
		String found_base_class;
		StringName base_class = script->get_instance_base_type();
		Ref<Script> inherited_script = script->get_base_script();
		while (!inherited_script.is_null()) {