void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { PsiElement problemElement = descriptor.getPsiElement(); if (problemElement instanceof PyReprExpression) { if (((PyReprExpression)problemElement).getExpression() != null) { final LanguageLevel level = LanguageLevel.forElement(problemElement); final String text = "repr(" + ((PyReprExpression)problemElement).getExpression().getText() + ")"; problemElement.replace(PyElementGenerator.getInstance(project).createExpressionFromText(level, text)); } } }