private static void startProcessUsages(@NotNull ProgressIndicator indicator,
                                         @NotNull FindUsagesHandlerBase handler,
                                         PsiElement @NotNull [] primaryElements,
                                         PsiElement @NotNull [] secondaryElements,
                                         @NotNull Processor<? super Usage> processor,
                                         @NotNull FindUsagesOptions findUsagesOptions,
                                         @NotNull Runnable onComplete) {
    startProcessUsages(indicator, handler.getProject(), createUsageSearcher(handler, primaryElements, secondaryElements, findUsagesOptions), processor, onComplete);
  }
private static void startProcessUsages(@NotNull ProgressIndicator indicator,
                                         @NotNull FindUsagesHandlerBase handler,
                                         PsiElement @NotNull [] primaryElements,
                                         PsiElement @NotNull [] secondaryElements,
                                         @NotNull Processor<? super Usage> processor,
                                         @NotNull FindUsagesOptions findUsagesOptions,
                                         @NotNull Runnable onComplete)