Is there a limit on the number of characters for its elements in PsiReference?

Here’s my reference definition

As shown below, these three references resolve to the same PsiMethod(friend), but only the other two references that have the same number of characters as friend are correctly highlighted, friendId is not highlighted, only the quick document

Is it because the number of characters is not equal? Is there any option to get also friendId highlighted correctly?

It’s hard to say without the complete source. There’s no limit on number of characters. The main requirement for an identifier to appear in find usages results is to have a reference at those offsets, resolving to the correct element. If you do have all of these, you can submit an issue to youtrack.jetbrains.com and attach the project to reproduce

Okay, I will organize a minimal reproduction project and then submit the issue

I’ve done the Minimum Reproduction project, but I don’t know which project is suitable for posting this question, can you help me to find it?

Do you mean to which project submit the issue? Try the Platfrom project, here: https://youtrack.jetbrains.com/issues?q=project:%20{IntelliJ%20Platform}%20

Yes, this is what I need! Thank you very much!