if (x >= 0 && x < getClientArea().width) {
if (0 <= x && x < getClientArea().width) {
int doMouseWordSelect(int x, int newCaretOffset, int line) {	// flip selection anchor based on word selection direction from 	// base double click. Always do this here (and don't rely on doAutoScroll)	// because auto scroll only does not cover all possible mouse selections	// (e.g., mouse x < 0 && mouse y > caret line y) 	if (newCaretOffset < selectionAnchor && selectionAnchor == selection.x) {		selectionAnchor = doubleClickSelection.y;	} else if (newCaretOffset > selectionAnchor && selectionAnchor == selection.y) {		selectionAnchor = doubleClickSelection.x;	}	if (x >= 0 && x < getClientArea().width) {		int wordOffset;		// find the previous/next word		if (caretOffset == selection.x) {			wordOffset = getWordStart(newCaretOffset);		} else {			wordOffset = getWordEndNoSpaces(newCaretOffset);		}		// mouse word select only on same line mouse cursor is on		if (content.getLineAtOffset(wordOffset) == line) {			newCaretOffset = wordOffset;		}	}	return newCaretOffset;}