void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { final PsiElement element = descriptor.getPsiElement(); if (element instanceof PyNumericLiteralExpression) { final PyElementGenerator elementGenerator = PyElementGenerator.getInstance(project); final String text = element.getText(); element.replace(elementGenerator.createExpressionFromText(LanguageLevel.forElement(element), text.replaceAll("_", ""))); } }