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.
seq(seq.size - 1)
seq.apply(seq.size - 1)
seq.last
seq
IndexedSeq