Reports seq(seq.size - 1) or seq.apply(seq.size - 1) and suggests replacing it with seq.last if seq is not an instance of IndexedSeq.