public static int shiftBackward(char @NotNull [] buffer, int offset, @NotNull String chars) {
    return shiftBackward(new CharArrayCharSequence(buffer), offset, chars);
  }
public static int shiftBackward(char @NotNull [] buffer, int offset, @NotNull String chars)