Runnable (String pattern, ResultsAccumulator accumulator, ProgressIndicator indicator, SearchEverywhereContributor<?> contributor, Runnable finalCallback) { //noinspection unchecked ContributorSearchTask<?> task = new ContributorSearchTask<>( (SearchEverywhereContributor<Object>)contributor, pattern, accumulator, indicator, finalCallback); return ConcurrencyUtil.underThreadNameRunnable("SE-SearchTask-" + contributor.getSearchProviderId(), task); }