private static boolean flushCurrentGroup(PsiClass @NotNull [] cache,
                                           boolean @NotNull [] isOutOfScope,
                                           boolean sameJarClassFound,
                                           int groupStart,
                                           int afterGroup,
                                           @NotNull Processor<? super PsiClass> processor) {
    if (!sameJarClassFound) {
      for (int g = groupStart; g < afterGroup; g++) {
        ProgressManager.checkCanceled();
        if (!isOutOfScope[g] && !processor.process(cache[g])) {
          return false;
        }
      }
    }
    return true;
  }
private static boolean flushCurrentGroup(PsiClass @NotNull [] cache,
                                           boolean @NotNull [] isOutOfScope,
                                           boolean sameJarClassFound,
                                           int groupStart,
                                           int afterGroup,
                                           @NotNull Processor<? super PsiClass> processor)