Inspectopedia Help

Using PsiElement string representation to generate new expression is incorrect

Reports direct usage of PsiElement and PsiType in strings.

When building strings for PsiJavaParserFacade.createExpressionFromText() (or similar methods), PsiElement.getText() should be used instead.

Inspection Details

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Plugin DevKit, 241.16690

Last modified: 29 April 2024