public static boolean replace(@NotNull Project project, @NotNull Editor editor, int offset, @NotNull FindModel model) {
    return replace(project, editor, offset, model, (range, replace) -> true);
  }
public static boolean replace(@NotNull Project project, @NotNull Editor editor, int offset, @NotNull FindModel model)