boolean (@NotNull Map<TextIndexQuery, Collection<RequestWithProcessor>> singles, @NotNull ProgressIndicator progress, @NotNull Map<RequestWithProcessor, Processor<? super PsiElement>> localProcessors) { if (singles.isEmpty()) { return true; } if (singles.size() == 1) { Collection<RequestWithProcessor> requests = singles.values().iterator().next(); if (requests.size() == 1) { RequestWithProcessor theOnly = requests.iterator().next(); return processSingleRequest(theOnly.request, theOnly.refProcessor); } } return processGlobalRequests(singles, progress, localProcessors); }