@NotNull
  public static FindModel createDefaultFindModel(@NotNull Project project, @NotNull Editor editor) {
    FindModel findModel = new FindModel();
    findModel.copyFrom(FindManager.getInstance(project).getFindInFileModel());
    if (editor.getSelectionModel().hasSelection()) {
      String selectedText = editor.getSelectionModel().getSelectedText();
      if (selectedText != null) {
        findModel.setStringToFind(selectedText);
      }
    }
    findModel.setPromptOnReplace(false);
    return findModel;
  }
@NotNull
  public static FindModel createDefaultFindModel(@NotNull Project project, @NotNull Editor editor)