This inspection reports calls like s.substring(0, s.length - x) replaceable with s.dropLast(x).