What Is the PSI?

The Program Structure Interface, commonly referred to as just PSI, is the layer in the Consulo responsible for parsing files and creating the syntactic and semantic code model that powers so many of the platform's features.

TIP A useful tool for debugging the PSI implementation is the PsiViewer plugin. It can show you the PSI tree structure, the properties of every PSI element, and highlight its text range.