@NotNull
  public static @NlsContexts.StatusText String getEmptyText(@NotNull FindModel findModel, @Nullable Editor editor) {
    if (!findModel.getStringToFind().isEmpty()) return "";
    if (findModel.isGlobal()) {
      SmartList<String> chosenOptions = new SmartList<>();
      checkOption(chosenOptions, findModel.isCaseSensitive(), "find.case.sensitive");
      checkOption(chosenOptions, findModel.isWholeWordsOnly(), "find.whole.words");
      checkOption(chosenOptions, findModel.isRegularExpressions(), "find.regex");
      if (chosenOptions.isEmpty()) {
        return ExperimentalUI.isNewUI() ? ApplicationBundle.message("editorsearch.search.hint") : "";
      }
      if (chosenOptions.size() == 1) {
        return FindBundle.message("emptyText.used.option", chosenOptions.get(0));
      }
      return FindBundle.message("emptyText.used.options", chosenOptions.get(0), chosenOptions.get(1));
    }

    String text = editor != null ? editor.getSelectionModel().getSelectedText() : null;
    if (text != null && text.contains("\n")) {
      boolean replaceState = findModel.isReplaceState() && !Registry.is("ide.find.use.search.in.selection.keyboard.shortcut.for.replace");
      AnAction action = ActionManager.getInstance().getAction(
        replaceState ? IdeActions.ACTION_REPLACE : IdeActions.ACTION_TOGGLE_FIND_IN_SELECTION_ONLY);
      Shortcut shortcut = ArrayUtil.getFirstElement(action.getShortcutSet().getShortcuts());
      if (shortcut != null) {
        return ApplicationBundle.message("editorsearch.in.selection.with.hint", KeymapUtil.getShortcutText(shortcut));
      }
    }
    return ApplicationBundle.message("editorsearch.in.selection");
  }
@NotNull
  public static @NlsContexts.StatusText String getEmptyText(@NotNull FindModel findModel, @Nullable Editor editor)