@Nullable
  private FindResult getFirstOccurrenceInSelection() {
    TextRange selection = getEditor().getCaretModel().getCurrentCaret().getSelectionRange();
    return ContainerUtil.find(myOccurrences, occurrence -> selection.contains(occurrence));
  }
@Nullable
  private FindResult getFirstOccurrenceInSelection()