void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { PsiElement numericLiteralExpression = descriptor.getPsiElement(); if (numericLiteralExpression instanceof PyNumericLiteralExpression numeric) { String suffix = numeric.getIntegerLiteralSuffix(); if (suffix == null) return; String text = numeric.getText(); String newText = text.substring(0, text.length() - suffix.length()); numeric.replace( PyElementGenerator.getInstance(project).createExpressionFromText(LanguageLevel.forElement(numeric), newText)); } }