private static int trimTailSpaces(@NotNull CharSequence seq, int rangeEnd) {
    return CharArrayUtil.shiftBackward(seq, rangeEnd - 1, " \n\t") + 1;
  }
private static int trimTailSpaces(@NotNull CharSequence seq, int rangeEnd)