Saving User Data to PsiElement
Hello. I have got a question.
We need to solve the following problem. Save User Data to PsiElement. So that they are saved when parsing a file. For example, when calling the function FileContentUtil.reparseFiles(PsiLanguageInjectionHost, List, Boolean)
. Looking for answers. It is recommended to use CachedValueManager
and CachedValue
. How to use them correctly in my case?