### 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.
TextEdit::_update_theme_item_cache();
	
	theme_cache.code_folding_color = get_theme_color(SNAME("code_folding_color"));
	theme_cache.can_fold_icon = get_theme_icon(SNAME("can_fold"));
	theme_cache.folded_icon = get_theme_icon(SNAME("folded"));
	theme_cache.folded_eol_icon = get_theme_icon(SNAME("folded_eol_icon"));
	theme_cache.breakpoint_color = get_theme_color(SNAME("breakpoint_color"));
	theme_cache.breakpoint_icon = get_theme_icon(SNAME("breakpoint"));
	theme_cache.bookmark_color = get_theme_color(SNAME("bookmark_color"));
	theme_cache.bookmark_icon = get_theme_icon(SNAME("bookmark"));
	theme_cache.executing_line_color = get_theme_color(SNAME("executing_line_color"));
	theme_cache.executing_line_icon = get_theme_icon(SNAME("executing_line"));
	theme_cache.line_number_color = get_theme_color(SNAME("line_number_color"));
	
	theme_cache.code_completion_style = get_theme_stylebox(SNAME("completion"));
	theme_cache.code_completion_icon_separation = get_theme_constant(SNAME("h_separation"), SNAME("ItemList"));
	theme_cache.code_completion_max_width = get_theme_constant(SNAME("completion_max_width"));
	theme_cache.code_completion_max_lines = get_theme_constant(SNAME("completion_lines"));
	theme_cache.code_completion_scroll_width = get_theme_constant(SNAME("completion_scroll_width"));
	theme_cache.code_completion_scroll_color = get_theme_color(SNAME("completion_scroll_color"));