public static @NotNull CharSequence getLastLine(final @NotNull CharSequence text) {
    int i = CharArrayUtil.shiftBackwardUntil(text, text.length() - 1, "\n");
    if (i < 0) {
      return text;
    }
    else if (i >= text.length() - 1) {
      return "";
    }
    else {
      return text.subSequence(i + 1, text.length());
    }
  }
public static @NotNull CharSequence getLastLine(final @NotNull CharSequence text)