private static @NotNull String removeWhitespaces(@NotNull String contentLine) {
    for (int i = contentLine.length() - 1; i >= 0; i--) {
      char c = contentLine.charAt(i);
      if (c != ' ' && c != '\t') return contentLine.substring(0, i + 1);
    }
    return "";
  }
private static @NotNull String removeWhitespaces(@NotNull String contentLine)