LineRange (int line) { for (T change : getChanges()) { int start = getStartLine(change); int end = getEndLine(change); if (start <= line && end > line) { return new LineRange(start, end); } if (start > line) return null; } return null; }