void (@NotNull List<LineHits> report) { LineHits prev = null; for (LineHits cur : report) { if (prev != null && prev.getLineNumber() > cur.getLineNumber()) { Collections.sort(report); return; } prev = cur; } }