private @Nullable TodoPattern mapPattern(@NotNull IndexPattern pattern) {
    for (TodoPattern todoPattern : myTodoPatterns) {
      if (todoPattern.getIndexPattern() == pattern) {
        return todoPattern;
      }
    }
    return null;
  }
private @Nullable TodoPattern mapPattern(@NotNull IndexPattern pattern)