void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { String newValue = myTypeSubstring.getTextRange().replace(myTypeSubstring.getSuperString(), myNewType); PyElementGenerator elementGenerator = PyElementGenerator.getInstance(project); final PyStringLiteralExpression stringLiteralExpression = as(descriptor.getPsiElement(), PyStringLiteralExpression.class); if (stringLiteralExpression != null) { stringLiteralExpression.replace(elementGenerator.createDocstring(newValue).getExpression()); } }