Psi and concurrency

is an instance of PsiBuilder used only from a single thread? Or is it possible that multiple threads access the same PsiBuilder instance?

Is it possible that a psi element is accessed from multiple threads at the same time?
I was wondering if inspections and the like are executed multi-threaded or not.


1 comment
Comment actions Permalink

A PsiBuilder is a short-lived object used for linear parsing of text, so I can't see any scenario where multi-threaded access to one would be appropriate or useful. For multi-threaded access to PSI elements, see


Please sign in to leave a comment.