Using PsiElement string representation to generate new expression is incorrect

Last modified: 03 December 2024

Reports direct usage of PsiElement and PsiType in strings.

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