The code here breaks the symmetry: if the comment is to an attachment, the link text is generated by a method, if it’s to a changeset, the logic is inline.