protected boolean startsWith(IDocument document, int offset, String word) {
protected final boolean startsWith(IDocument document, int offset, String word) {
	protected boolean startsWith(IDocument document, int offset, String word) {		int wordLength= word == null ? 0 : word.length();		if (offset >  getReplacementOffset() + wordLength)			return false;		try {			int length= offset - getReplacementOffset();			String start= document.get(getReplacementOffset(), length);			return word.substring(0, length).equalsIgnoreCase(start);		} catch (BadLocationException x) {		}		return false;	}