void (@NotNull Project project, @NotNull String propertyName, @NotNull String selectedString, @NotNull String replaceWith, @NotNull MavenDomProjectModel model) { UsageViewManager manager = UsageViewManager.getInstance(project); if (manager == null) return; assureFindToolWindowRegistered(project); FindManager findManager = FindManager.getInstance(project); FindModel findModel = createFindModel(findManager, selectedString, replaceWith); final UsageViewPresentation presentation = FindInProjectUtil.setupViewPresentation(true, findModel); final FindUsagesProcessPresentation processPresentation = FindInProjectUtil.setupProcessPresentation(true, presentation); findManager.getFindInProjectModel().copyFrom(findModel); final FindModel findModelCopy = findModel.clone(); ReplaceInProjectManager.getInstance(project) .searchAndShowUsages(manager, new MyUsageSearcherFactory(model, propertyName, selectedString), findModelCopy, presentation, processPresentation ); }