public static int lastSeparatorIndex(@NotNull CharSequence s, int endInclusive) {
    for (int i = endInclusive; i >= 0; i--) {
      if (isSeparator(s.charAt(i))) {
        return i;
      }
    }
    return -1;
  }
public static int lastSeparatorIndex(@NotNull CharSequence s, int endInclusive)