public void addOccurrence(final CharSequence charSequence, char[] charArray, final int start, final int end, final int occurrenceMask) {
    if (myIndexDataConsumer == null) {
      return;
    }

    if (charArray != null) {
      myIndexDataConsumer.addOccurrence(charArray, start, end, occurrenceMask);
    }
    else {
      myIndexDataConsumer.addOccurrence(charSequence, start, end, occurrenceMask);
    }
  }
public void addOccurrence(final CharSequence charSequence, char[] charArray, final int start, final int end, final int occurrenceMask)