private static List<CoverageReport.LineHits> convertClassDataToLineHits(@NotNull ClassData classData) {
int lineCount = classData.getLines().length;
List<CoverageReport.LineHits> lineHitsList = ContainerUtil.newArrayListWithCapacity(lineCount);
for (int lineInd = 0; lineInd < lineCount; lineInd++) {
LineData lineData = classData.getLineData(lineInd);
if (lineData != null) {
CoverageReport.LineHits lineHits = new CoverageReport.LineHits(
lineData.getLineNumber(),
lineData.getHits()
);
lineHitsList.add(lineHits);
}
}
return lineHitsList;