if(node != null)
offset = node.getTotalEndOffset();
}
final ReplacingAppendable appendable = appendableFactory.get(xtextDocument, call, offset, 0, 1, false);
appendable.newLine().increaseIndentation().append("def ");
<BUG>getTypeArgumentString(call, appendable);
if(expectedType != null && expectedType.getType() != null){</BUG>
typeRefSerializer.serialize(expectedType, call, appendable);
appendable.append(" ");
}

if(node != null)
offset = node.getTotalEndOffset();
}
final ReplacingAppendable appendable = appendableFactory.get(xtextDocument, call, offset, 0, 1, false);
appendable.newLine().increaseIndentation().append("def ");
computeTypeArguments(call, call.getTypeArguments(), appendable);
if(expectedType != null && expectedType.getType() != null){
typeRefSerializer.serialize(expectedType, call, appendable);
appendable.append(" ");
}
