private void doSearchAndReplace() { if (currentSearch.CanSearchAndReplace(searchOptions)) { SearchOptions options = searchOptions.Copy(); options.searchType = SearchType.SearchAndReplace; searchJob = new SearchJob(currentSearch, options, currentSearch.searchScope.ToData(options)); searchJob.AddAssets(SearchAssetFactory.GetAssets(currentSearch.searchScope.ToData(options))); EditorCoroutineUtility.StartCoroutine(searchJob.ExecuteAsync(), this); } }