To fix, simply change type checks from `String` to `CharSequence` in `SearchContextBasedBasicLocator`