### 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 (!changed_indentation) {
				begin_complex_operation();
				changed_indentation = true;
			}
			
			for (int c = 0; c < get_caret_count(); c++) {
				if (get_caret_line(c) != i || caret_columns[c] <= j) {
					continue;
				}
				caret_columns.write[c] += size_diff;
				if (from_selections.write[c].first == -1) {
					continue;
				}
				from_selections.write[c].second = from_selections[c].first == i ? from_selections[c].second + size_diff : from_selections[c].second;
				to_selections.write[c].second = to_selections[c].first == i ? to_selections[c].second + size_diff : to_selections[c].second;
			}
			
			line = line.left(j + ((size_diff < 0) ? size_diff : 0)) + indent_text + line.substr(j + 1);
			space_count = 0;
			j += size_diff;
		}
		if (line_changed) {
			set_line(i, line);
		}
	}
	if (!changed_indentation) {
		return;
	}
	
	for (int c = 0; c < get_caret_count(); c++) {