Configuration () { saveConfiguration(); //final MatchOptions matchOptions = myConfiguration.getMatchOptions(); //assert matchOptions.isCaseSensitiveMatch() == myMatchCase.isSelected(); //assert matchOptions.isSearchInjectedCode() == myInjected.isSelected(); //final ReplaceOptions replaceOptions = myConfiguration.getReplaceOptions(); //assert replaceOptions.isToReformatAccordingToStyle() == myReformat.isSelected(); //assert replaceOptions.isToUseStaticImport() == myStaticImport.isSelected(); //assert replaceOptions.isToShortenFQN() == myShortenFqn.isSelected(); return myReplace ? new ReplaceConfiguration(myConfiguration) : new SearchConfiguration(myConfiguration); }