void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { final PsiElement element = descriptor.getPsiElement(); if (!(element instanceof PsiNamedElement)) return; final TemplateBuilder builder = TemplateBuilderFactory.getInstance().createTemplateBuilder(element); final String name = ((PsiNamedElement)element).getName(); assert name != null; builder.replaceElement(element, TextRange.create(0, name.length()), name); PythonTemplateRunner.runTemplate(element.getContainingFile(), builder); }