if (pos + 3 < length && Character.isJavaIdentifierPart(document.getChar(pos + 3)))
if (pos + 3 < length && Character.isJavaIdentifierPart(text.charAt(pos + 3)))
	private static boolean isNewMatch(IDocument document, int offset, int length, String partitioning) {		Assert.isTrue(length >= 0);		Assert.isTrue(offset >= 0);		Assert.isTrue(offset + length < document.getLength() + 1);		try {			String text= document.get(offset, length);			int pos= text.indexOf("new"); //$NON-NLS-1$						while (pos != -1 && !isDefaultPartition(document, pos + offset, partitioning))				pos= text.indexOf("new", pos + 2); //$NON-NLS-1$			if (pos < 0)				return false;			if (pos != 0 && Character.isJavaIdentifierPart(document.getChar(pos - 1)))				return false;			if (pos + 3 < length && Character.isJavaIdentifierPart(document.getChar(pos + 3)))				return false;						return true;		} catch (BadLocationException e) {		}		return false;	}