LineRange () { ApplyPatchViewer.MyModel model = myViewer.getModel(); int lineStart = model.getLineStart(myIndex); int lineEnd = model.getLineEnd(myIndex); if (lineStart != -1 || lineEnd != -1) return new LineRange(lineStart, lineEnd); return null; }