private Element addLineElement(Document doc, Element linesElement, FileData fileData, int i, Element lineElement) {
        if (i < fileData.getLines().size()) {
            Integer hits = fileData.getLines().get(i);
            if (hits != null) {
                lineElement = doc.createElement("line");
                linesElement.appendChild(lineElement);
                lineElement.setAttribute("number", "" + i);
                lineElement.setAttribute("hits", hits.toString());
                lineElement.setAttribute("branch", "false");
            }
        }
        return lineElement;
    }