boolean (int position) { if (!Character.isWhitespace(myBuffer.charAt(position))) return false; int start = position; for (position++; position < myEndOffset && Character.isWhitespace(myBuffer.charAt(position)); position++) ; myTokenInfo.updateData(start, position, CustomHighlighterTokenType.WHITESPACE); return true; }