for (int i = startLine; i < stopLine; i++) {
if (startLine < 0 || endLine > lineWidth.length) { return; } for (int i = startLine; i < endLine; i++) {
	public void calculate(int startLine, int lineCount) {		GC gc = null;		int caretWidth = 0;		int stopLine = startLine + lineCount;					for (int i = startLine; i < stopLine; i++) {			if (lineWidth[i] == -1) {				String line = content.getLine(i);				int lineOffset = content.getOffsetAtLine(i);						if (gc == null) {					gc = parent.getGC();					caretWidth = getCaretWidth();				}						lineWidth[i] = contentWidth(line, lineOffset, gc) + caretWidth;			}			if (lineWidth[i] > maxWidth) {				maxWidth = lineWidth[i];				maxWidthLineIndex = i;			}		}		if (gc != null) {			gc.dispose();			}	}