LSP-475 IDEA-378595 fix JavaSimplePropertyGist class init depending on a service

GitOrigin-RevId: 9e20a7252bfa2fe675929ac19e8c37b050b48030
This commit is contained in:
Bartek Pacia
2026-01-27 15:04:35 +00:00
committed by intellij-monorepo-bot
parent c4cecffc34
commit 5a61a4450b
@@ -49,9 +49,11 @@ private fun resolveFieldFromIndexValue(method: PsiMethod, isGetter: Boolean): Ps
return null
}
@VisibleForTesting
val javaSimplePropertyGist: PsiFileGist<Int2ObjectMap<PropertyIndexValue>> = GistManager.getInstance().newPsiFileGist("java.simple.property", 3, SimplePropertiesExternalizer()) { file ->
findSimplePropertyCandidates(file.node.lighterAST)
@get:VisibleForTesting
val javaSimplePropertyGist: PsiFileGist<Int2ObjectMap<PropertyIndexValue>> by lazy {
GistManager.getInstance().newPsiFileGist("java.simple.property", 3, SimplePropertiesExternalizer()) { file ->
findSimplePropertyCandidates(file.node.lighterAST)
}
}
private val allowedExpressions by lazy {