private void addSpellingCorrectionSuggestionIfAvailable(@NotNull String tabId, @NotNull String query) {
    if (mySpellingCorrector == null || !mySpellingCorrector.isAvailableInTab(tabId)) return;

    var spellCheckResult = mySpellingCorrector.checkSpellingOf(query);
    if (spellCheckResult instanceof SearchEverywhereSpellCheckResult.Correction correction) {
      SearchEverywhereFoundElementInfo elementInfo;
      if (myMlService != null) {
        elementInfo = myMlService.createFoundElementInfo(new SearchEverywhereSpellingCorrectorContributor(mySearchField),
                                                         correction,
                                                         Integer.MAX_VALUE);
      }
      else {
        elementInfo = new SearchEverywhereFoundElementInfo(correction,
                                                           Integer.MAX_VALUE,
                                                           new SearchEverywhereSpellingCorrectorContributor(mySearchField));
      }
      myListModel.addElements(Collections.singletonList(elementInfo));
    }
  }
private void addSpellingCorrectionSuggestionIfAvailable(@NotNull String tabId, @NotNull String query)