[Java Resolution] use a smart psi pointer to store PSI in JavaElement for IDE

`JavaElement`s are reused between read actions, so underlying PSI elements might be invalidated when using hard PSI references

^KT-58194 fixed
This commit is contained in:
Ilya Kirillov
2023-05-08 17:51:39 +02:00
committed by Space Team
parent c114cb67cb
commit 2d08d29dac
6 changed files with 124 additions and 6 deletions
@@ -8,6 +8,7 @@ dependencies {
api(project(":analysis:analysis-api"))
api(project(":analysis:analysis-api-impl-barebone"))
api(project(":analysis:kt-references"))
api(project(":compiler:resolution.common.jvm"))
api(intellijCore())
implementation(project(":analysis:analysis-internal-utils"))