Yes, at least for the physical PSI (based on document and AST). There are some cases of non-physical PSI to represent non-code elements, they sometimes allow duplication and implement equals/hashCode.
Note that PSI can be garbage-collected, then, of course, it will be recreated the next time it's needed.
Yes, at least for the physical PSI (based on document and AST). There are some cases of non-physical PSI to represent non-code elements, they sometimes allow duplication and implement equals/hashCode.
Note that PSI can be garbage-collected, then, of course, it will be recreated the next time it's needed.
Thanks!