FindModel (FindManager findManager, String selectedString, String replaceWith) { FindModel findModel = findManager.getFindInProjectModel().clone(); findModel.setStringToFind(selectedString); findModel.setStringToReplace(replaceWith); findModel.setReplaceState(true); findModel.setPromptOnReplace(true); findModel.setCaseSensitive(true); findModel.setRegularExpressions(false); return findModel; }