void (@NotNull FindModel model) { model.setCaseSensitive(myCaseSensitiveState.get()); model.setPreserveCase(myPreserveCaseState.get()); model.setWholeWordsOnly(myWholeWordsState.get()); FindModel.SearchContext searchContext = parseSearchContext(mySelectedContextName); model.setSearchContext(searchContext); model.setRegularExpressions(myRegexState.get()); model.setStringToFind(getStringToFind()); if (myHelper.isReplaceState()) { model.setStringToReplace(StringUtil.convertLineSeparators(getStringToReplace())); } model.setProjectScope(false); model.setDirectoryName(null); model.setModuleName(null); model.setCustomScopeName(null); model.setCustomScope(null); model.setCustomScope(false); myScopeUI.applyTo(model, mySelectedScope); model.setFindAll(false); String mask = getFileTypeMask(); model.setFileFilter(mask); }