int lineIndex = getContent().getLineAtOffset(lineOffset);
StyledTextContent content = styledText.getContent(); int lineIndex = content.getLineAtOffset(lineOffset);
private TextLayout createTextLayout(int lineOffset) {	if (styledText != null) {		int lineIndex = getContent().getLineAtOffset(lineOffset);		updateTopIndex();		if (layouts != null) {			int layoutIndex = lineIndex - topIndex;			if (0 <= layoutIndex && layoutIndex < layouts.length) {				TextLayout layout = layouts[layoutIndex];				if (layout != null) return layout;				return layouts[layoutIndex] = new TextLayout(device);			}		}	}	return new TextLayout(device);}