void (CharSequence chars, char[] cachedArraySequence, int startOffset, int endOffset) { int offset = findCharsWithinRange(chars, startOffset, endOffset, "/\\"); offset = Math.min(offset, endOffset); int start = startOffset; while(start < endOffset) { if (start != offset) { myOccurrenceConsumer.addOccurrence(chars, cachedArraySequence, start, offset, UsageSearchContext.IN_FOREIGN_LANGUAGES); } start = offset + 1; offset = Math.min(endOffset, findCharsWithinRange(chars, start, endOffset, "/\\")); } }