class StatisticPoint {

    private static final Pattern DOUBLE_QUOTE = Pattern.compile("\"\"");
    private static final Pattern SINGLE_QUOTE = Pattern.compile("\"");

    public abstract String toCsvLine();

    public static String buildCsvLineWithLongs(long timeMillisSpent, long... values) {
        return LongStream.concat(LongStream.of(timeMillisSpent), Arrays.stream(values))
                .mapToObj(Long::toString)
                .collect(Collectors.joining(","));
    }

    public static String buildCsvLineWithDoubles(long timeMillisSpent, double... values) {
        return timeMillisSpent + "," + Arrays.stream(values)
                .mapToObj(Double::toString)
                .collect(Collectors.joining(","));
    }

    public static String buildCsvLineWithStrings(long timeMillisSpent, String... values) {
        return Stream.concat(Stream.of(timeMillisSpent), Arrays.stream(values))
                .map(Object::toString)
                .collect(Collectors.joining(","));
    }

    public static String buildCsvLine(String... values) {
        return Arrays.stream(values)
                .map(s -> '"' + SINGLE_QUOTE.matcher(s).replaceAll("\"\"") + '"')
                .collect(Collectors.joining(","));
    }

    public static List<String> parseCsvLine(String line) {<FILL_FUNCTION_BODY>}

}

        String[] tokens = line.split(",");
        List<String> csvLine = new ArrayList<>(tokens.length);
        for (int i = 0; i < tokens.length; i++) {
            String token = tokens[i].trim();
            while (token.startsWith("\"") && !token.endsWith("\"")) {
                i++;
                if (i >= tokens.length) {
                    throw new IllegalArgumentException("The CSV line (" + line + ") is not a valid CSV line.");
                }
                token += "," + tokens[i].trim();
            }
            if (token.startsWith("\"") && token.endsWith("\"")) {
                token = token.substring(1, token.length() - 1);
                token = DOUBLE_QUOTE.matcher(token).replaceAll("\"");
            }
            csvLine.add(token);
        }
        return csvLine;
    
<no_super_class>