void (@NotNull DataContext dataContext, @Nullable FindModel model) { FindManager findManager = FindManager.getInstance(myProject); FindModel findModel; if (model != null) { findModel = model.clone(); } else { findModel = findManager.getFindInProjectModel().clone(); findModel.setReplaceState(false); initModel(findModel, dataContext); } findManager.showFindDialog(findModel, () -> { if (findModel.isReplaceState()) { ReplaceInProjectManager.getInstance(myProject).replaceInPath(findModel); } else { findInPath(findModel); } }); }