# \#psi

**URL:** https://platform.jetbrains.com/tag/psi/50.md

[Latest](https://platform.jetbrains.com/latest.md) · [Categories](https://platform.jetbrains.com/categories.md) · [Tags](https://platform.jetbrains.com/tags.md)

---

## [How to do unit tests of JavaScript PSI?](https://platform.jetbrains.com/t/how-to-do-unit-tests-of-javascript-psi/4430)

<div class="topic-metadata">

**Author:** [@julien.pradelle](https://platform.jetbrains.com/u/julien.pradelle)\
**Replies:** 0\
**Last updated:** [June 9, 2026, 7:56pm UTC](https://platform.jetbrains.com/t/how-to-do-unit-tests-of-javascript-psi/4430 "2026-06-09T19:56:12Z")

</div>

Hi, I’m trying to do some unit tests on PSI element of a javascript file. I’m quite sure something like that was working (on another project with different setup), before version 2026 or a bit earlier. Here is my buil…

---

## [Locate PsiClass elements in project scope](https://platform.jetbrains.com/t/locate-psiclass-elements-in-project-scope/3631)

<div class="topic-metadata">

**Author:** [@eltonsandre](https://platform.jetbrains.com/u/eltonsandre)\
**Replies:** 1\
**Last updated:** [February 3, 2026, 10:19am UTC](https://platform.jetbrains.com/t/locate-psiclass-elements-in-project-scope/3631 "2026-02-03T10:19:39Z")

</div>

How do I locate all PsiElement(PsiClass) elements of classes that annotate @Component and implement or inherit from java.util.function.Consumer\<org.springframework.messaging.Message\<?\>\> within the project scope?

---

## [I'm operating on the PSI and while running automated tests memory and disk popup appears](https://platform.jetbrains.com/t/im-operating-on-the-psi-and-while-running-automated-tests-memory-and-disk-popup-appears/3168)

<div class="topic-metadata">

**Author:** [@markatathena](https://platform.jetbrains.com/u/markatathena)\
**Replies:** 2\
**Last updated:** [December 1, 2025, 3:22pm UTC](https://platform.jetbrains.com/t/im-operating-on-the-psi-and-while-running-automated-tests-memory-and-disk-popup-appears/3168 "2025-12-01T15:22:26Z")

</div>

Hi, I’m working on a private MCP server that does things similar to the official one from JetBrains. I am using vitest to connect to it and run tests and quite often I get a dialog that says: Changes have been made to…

---

## [Keep the presentation in the PsiElement wrapper](https://platform.jetbrains.com/t/keep-the-presentation-in-the-psielement-wrapper/2252)

<div class="topic-metadata">

**Author:** [@eltonsandre](https://platform.jetbrains.com/u/eltonsandre)\
**Replies:** 0\
**Last updated:** [July 14, 2025, 11:39pm UTC](https://platform.jetbrains.com/t/keep-the-presentation-in-the-psielement-wrapper/2252 "2025-07-14T23:39:55Z")

</div>

I’m referencing a PsiClass element. When I press Ctrl and hover, it displays this complete ToolTip \[image\]. However, I need to wrap this PsiClass in a LightElement, but I want to maintain the same behavior as the Tool…

---

## [May implementations of \`com.intellij.psi.PsiElement#getUseScope\` use indexes?](https://platform.jetbrains.com/t/may-implementations-of-com-intellij-psi-psielement-getusescope-use-indexes/1523)

<div class="topic-metadata">

**Author:** [@jansorg](https://platform.jetbrains.com/u/jansorg)\
**Replies:** 0\
**Last updated:** [April 28, 2025, 9:46am UTC](https://platform.jetbrains.com/t/may-implementations-of-com-intellij-psi-psielement-getusescope-use-indexes/1523 "2025-04-28T09:46:05Z")

</div>

Currently, I’m implementing getUseScope() of my own PSI to use indexes to calculate the most narrow use scope using included files and including files. I couldn’t find any documentation about this in the intellij-commun…
