private static int getBackspacePrefixLength(@NotNull CharSequence text) {
    return StringUtil.countChars(text, BACKSPACE, 0, true);
  }
private static int getBackspacePrefixLength(@NotNull CharSequence text)