docs: public static List<TokensLine> convert(List<TokenEntry> tokens) {
      List<TokensLine> result = new ArrayList<>();
      StringBuilder sb = new StringBuilder();
      int startLine = Integer.MIN_VALUE;
      int startIndex = 0;
      int currentIndex = 0;
      for (TokenEntry token : tokens) {
        if (token != TokenEntry.EOF) {
          String value = token.getValue();
          int line = token.getBeginLine();
          if (line != startLine) {
            addNewTokensLine(result, startIndex, currentIndex, startLine, sb);
            startIndex = currentIndex + 1;
            startLine = line;
          }
          currentIndex++;
          sb.append(value);
        }
      }
      addNewTokensLine(result, startIndex, currentIndex, startLine, sb);
      return result;
    }