This inspection reports calls like
s.substring(0, x)
replaceable with
s.take(x)
.