public static @NotNull List<PsiMethod> overrideOrImplementMethodCandidates(@NotNull PsiClass aClass,
                                                                             @NotNull Collection<? extends CandidateInfo> candidates,
                                                                             boolean toCopyJavaDoc,
                                                                             boolean insertOverrideWherePossible) throws IncorrectOperationException {
    List<PsiMethod> result = new ArrayList<>();
    for (CandidateInfo candidateInfo : candidates) {
      PsiMethod method = (PsiMethod)candidateInfo.getElement();
      ProgressManager.progress(method.getName());
      result.addAll(overrideOrImplementMethod(aClass, method, candidateInfo.getSubstitutor(),
                                              toCopyJavaDoc, insertOverrideWherePossible));
    }
    return result;
  }
public static @NotNull List<PsiMethod> overrideOrImplementMethodCandidates(@NotNull PsiClass aClass,
                                                                             @NotNull Collection<? extends CandidateInfo> candidates,
                                                                             boolean toCopyJavaDoc,
                                                                             boolean insertOverrideWherePossible)