void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { final PyReferenceExpression element = as(descriptor.getPsiElement(), PyReferenceExpression.class); if (element == null) return; PyElementGenerator elementGenerator = PyElementGenerator.getInstance(project); PyExpression expression = elementGenerator.createExpressionFromText(LanguageLevel.forElement(element), myQualifier + "." + element.getText()); element.replace(expression); }