Source:
<code>public String searchSeriesByCatalog( @RequestParam(name = "catalogNumber", defaultValue = "") String catalogNumber, @RequestParam(name = "catalogName", defaultValue = "") String catalogName, @RequestParam(name = "inCollection", defaultValue = "false") Boolean inCollection, <START> @CurrentUser Integer currentUserId, <END> Model model, Locale userLocale, RedirectAttributes redirectAttributes) { if (StringUtils.isBlank(catalogNumber)) { redirectAttributes.addFlashAttribute("numberIsEmpty", true); return "redirect:" + SiteUrl.INDEX_PAGE; } String lang = LocaleUtils.getLanguageOrNull(userLocale); List<SeriesInfoDto> series; switch (catalogName) { case "michel": series = seriesService.findByMichelNumber(catalogNumber, lang); break; case "scott": series = seriesService.findByScottNumber(catalogNumber, lang); break; case "yvert": series = seriesService.findByYvertNumber(catalogNumber, lang); break; case "gibbons": series = seriesService.findByGibbonsNumber(catalogNumber, lang); break; case "solovyov": series = seriesService.findBySolovyovNumber(catalogNumber, lang); break; case "zagorski": series = seriesService.findByZagorskiNumber(catalogNumber, lang); break; default: series = Collections.emptyList(); break; } if (Features.SEARCH_IN_COLLECTION.isActive() && inCollection && SecurityContextHolder.getContext().getAuthentication().isAuthenticated()) { series = series .stream() .filter( e->collectionService.isSeriesInCollection(currentUserId, e.getId()) ) .collect(Collectors.toList()); } model.addAttribute("searchResults", series); return "series/search_result"; }</code><technical_language>Please, add this line (to reduce diff)</technical_language>

Target:
public String searchSeriesByCatalog( @RequestParam(name = "catalogNumber", defaultValue = "") String catalogNumber, @RequestParam(name = "catalogName", defaultValue = "") String catalogName, @RequestParam(name = "inCollection", defaultValue = "false") Boolean inCollection, @CurrentUser Integer currentUserId, Model model, Locale userLocale, RedirectAttributes redirectAttributes) { if (StringUtils.isBlank(catalogNumber)) { redirectAttributes.addFlashAttribute("numberIsEmpty", true); return "redirect:" + SiteUrl.INDEX_PAGE; } String lang = LocaleUtils.getLanguageOrNull(userLocale); List<SeriesInfoDto> series; switch (catalogName) { case "michel": series = seriesService.findByMichelNumber(catalogNumber, lang); break; case "scott": series = seriesService.findByScottNumber(catalogNumber, lang); break; case "yvert": series = seriesService.findByYvertNumber(catalogNumber, lang); break; case "gibbons": series = seriesService.findByGibbonsNumber(catalogNumber, lang); break; case "solovyov": series = seriesService.findBySolovyovNumber(catalogNumber, lang); break; case "zagorski": series = seriesService.findByZagorskiNumber(catalogNumber, lang); break; default: series = Collections.emptyList(); break; } if (Features.SEARCH_IN_COLLECTION.isActive() && inCollection && currentUserId != null) { series = series .stream() .filter( e -> collectionService.isSeriesInCollection(currentUserId, e.getId()) ) .collect(Collectors.toList()); } model.addAttribute("searchResults", series); return "series/search_result"; }