PsiClass aClass = method.getContainingClass();
<BUG>List<HierarchicalMethodSignature> superSignatures = method.getHierarchicalMethodSignature().getSuperSignatures();
try {</BUG>
PsiMethod templateMethod = method.getManager().getElementFactory().createMethod("x", returnType);
<BUG>FileTemplate template = setupMethodBody(superSignatures, templateMethod, aClass, false);
if (template.isDefault()) return null;</BUG>
}
catch (IncorrectOperationException e) {
<BUG>LOG.error(e);
}
return new ReplaceWithFileTemplateFix() {
public void applyFix(Project project, ProblemDescriptor descriptor) {</BUG>
PsiType returnType = method.getReturnType();

PsiClass aClass = method.getContainingClass();
List<HierarchicalMethodSignature> superSignatures = method.getHierarchicalMethodSignature().getSuperSignatures();
FileTemplate template;
try {
PsiMethod templateMethod = method.getManager().getElementFactory().createMethod("x", returnType);
template = setupMethodBody(superSignatures, templateMethod, aClass, false);
}
catch (IncorrectOperationException e) {
LOG.error(e);
return null;
}
final ReplaceWithFileTemplateFix replaceWithFileTemplateFix = new ReplaceWithFileTemplateFix() {
public void applyFix(Project project, ProblemDescriptor descriptor) {
PsiType returnType = method.getReturnType();
