@NotNull
  TodoItem createTodo(@NotNull IndexPatternOccurrence occurrence) {
    TextRange occurrenceRange = occurrence.getTextRange();
    return new TodoItemImpl(occurrence.getFile(), occurrenceRange.getStartOffset(), occurrenceRange.getEndOffset(),
                            mapPattern(occurrence.getPattern()), occurrence.getAdditionalTextRanges());
  }
@NotNull
  TodoItem createTodo(@NotNull IndexPatternOccurrence occurrence)