: DartBundle.message("dart.fix.override.none.found");
}
@Override
protected Template buildFunctionsText(TemplateManager templateManager, DartComponent element) {
final Template template = templateManager.createTemplate(getClass().getName(), DART_TEMPLATE_GROUP);
template.setToReformat(true);
final DartReturnType returnType = PsiTreeUtil.getChildOfType(element, DartReturnType.class);
final DartType dartType = PsiTreeUtil.getChildOfType(element, DartType.class);
if (returnType != null) {
template.addTextSegment(DartPresentableUtil.buildTypeText(element, returnType, specializations));
template.addTextSegment(" ");
}
else if (dartType != null) {
template.addTextSegment(DartPresentableUtil.buildTypeText(element, dartType, specializations));
template.addTextSegment(" ");
}
if (element.isGetter() || element.isSetter()) {
template.addTextSegment(element.isGetter() ? "get " : "set ");
}
//noinspection ConstantConditions
template.addTextSegment(element.getName());
if (!element.isGetter()) {
template.addTextSegment("(");
template.addTextSegment(DartPresentableUtil.getPresentableParameterList(element, specializations));
template.addTextSegment(")");
}
template.addTextSegment("{\n");
template.addEndVariable();
template.addTextSegment("\n}\n");
return template;
}