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

**URL:** https://platform.jetbrains.com/t/is-there-a-limit-on-the-number-of-characters-for-its-elements-in-psireference/993
**Category:** IntelliJ Platform
**Created:** [March 19, 2025, 4:26am UTC](https://platform.jetbrains.com/t/is-there-a-limit-on-the-number-of-characters-for-its-elements-in-psireference/993 "2025-03-19T04:26:15Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![the.fallenangel.965](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/the.fallenangel.965/32/434_2.png) [@the.fallenangel.965](https://platform.jetbrains.com/u/the.fallenangel.965)
#### Post date: [March 19, 2025, 4:26am UTC](https://platform.jetbrains.com/t/is-there-a-limit-on-the-number-of-characters-for-its-elements-in-psireference/993/1 "2025-03-19T04:26:15Z")

</div>

Here’s my reference definition

 ![DTOReference](https://us1.discourse-cdn.com/flex001/uploads/jetbrains_platform/original/1X/680a8431319e01cdbaa0ce66aa23461c62ad6fff.png)

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

 ![References](https://us1.discourse-cdn.com/flex001/uploads/jetbrains_platform/original/1X/f1c6b5263165fc3000830c422b718ab7fdb34ff5.png)

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

---

<div class="post-metadata">

### Author: ![cdr](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/cdr/32/790_2.png) [@cdr](https://platform.jetbrains.com/u/cdr)
#### Post date: [March 24, 2025, 10:40am UTC](https://platform.jetbrains.com/t/is-there-a-limit-on-the-number-of-characters-for-its-elements-in-psireference/993/3 "2025-03-24T10:40:16Z")

</div>

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](http://youtrack.jetbrains.com) and attach the project to reproduce

---

<div class="post-metadata">

### Author: ![the.fallenangel.965](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/the.fallenangel.965/32/434_2.png) [@the.fallenangel.965](https://platform.jetbrains.com/u/the.fallenangel.965)
#### Post date: [March 24, 2025, 2:11pm UTC](https://platform.jetbrains.com/t/is-there-a-limit-on-the-number-of-characters-for-its-elements-in-psireference/993/4 "2025-03-24T14:11:43Z")

</div>

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

---

<div class="post-metadata">

### Author: ![the.fallenangel.965](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/the.fallenangel.965/32/434_2.png) [@the.fallenangel.965](https://platform.jetbrains.com/u/the.fallenangel.965)
#### Post date: [April 2, 2025, 11:12am UTC](https://platform.jetbrains.com/t/is-there-a-limit-on-the-number-of-characters-for-its-elements-in-psireference/993/5 "2025-04-02T11:12:19Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![cdr](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/cdr/32/790_2.png) [@cdr](https://platform.jetbrains.com/u/cdr)
#### Post date: [April 2, 2025, 12:10pm UTC](https://platform.jetbrains.com/t/is-there-a-limit-on-the-number-of-characters-for-its-elements-in-psireference/993/6 "2025-04-02T12:10:25Z")

</div>

> [@the.fallenangel.965](#):
>
> Okay, I will organize a minimal reproduction project and then submit the issue

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](https://youtrack.jetbrains.com/issues?q=project:%20%7BIntelliJ%20Platform%7D%20)

---

<div class="post-metadata">

### Author: ![the.fallenangel.965](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/the.fallenangel.965/32/434_2.png) [@the.fallenangel.965](https://platform.jetbrains.com/u/the.fallenangel.965)
#### Post date: [April 11, 2025, 1:50am UTC](https://platform.jetbrains.com/t/is-there-a-limit-on-the-number-of-characters-for-its-elements-in-psireference/993/7 "2025-04-11T01:50:57Z")

</div>

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