boolean (final List<UsageInfo> variableUsages) { for (Iterator<AutomaticRenamer> iterator = myRenamers.iterator(); iterator.hasNext(); ) { AutomaticRenamer automaticVariableRenamer = iterator.next(); if (!automaticVariableRenamer.hasAnythingToRename()) continue; if (!showAutomaticRenamingDialog(automaticVariableRenamer)) { iterator.remove(); } } final Runnable runnable = () -> ApplicationManager.getApplication().runReadAction(() -> { for (final AutomaticRenamer renamer : myRenamers) { renamer.findUsages(variableUsages, mySearchInComments, mySearchTextOccurrences, mySkippedUsages, myAllRenames); } }); return ProgressManager.getInstance().runProcessWithProgressSynchronously(runnable, RefactoringBundle.message("searching.for.variables"), true, myProject); }