void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { PsiElement numericLiteralExpression = descriptor.getPsiElement(); if (numericLiteralExpression instanceof PyNumericLiteralExpression) { PyElementGenerator elementGenerator = PyElementGenerator.getInstance(project); String text = numericLiteralExpression.getText(); final LanguageLevel level = LanguageLevel.forElement(numericLiteralExpression); numericLiteralExpression.replace(elementGenerator.createExpressionFromText(level, "0o" + text.substring(1))); } }