boolean (@NotNull List<LineHits> lineHitsList) { LineHits prev = null; for (LineHits cur : lineHitsList) { if (prev != null && prev.getLineNumber() == cur.getLineNumber()) { return false; } prev = cur; } return true; }