public static @NotNull List<PsiGenerationInfo<PsiMethod>> overrideOrImplementMethods(@NotNull PsiClass aClass,
                                                                                       @NotNull Collection<? extends PsiMethodMember> candidates,
                                                                                       boolean toCopyJavaDoc,
                                                                                       boolean toInsertAtOverride)
    throws IncorrectOperationException {
    List<CandidateInfo> candidateInfos = ContainerUtil.map(candidates, s -> new CandidateInfo(s.getElement(), s.getSubstitutor()));
    final List<PsiMethod> methods = overrideOrImplementMethodCandidates(aClass, candidateInfos, toCopyJavaDoc, toInsertAtOverride);
    return convert2GenerationInfos(methods);
  }
public static @NotNull List<PsiGenerationInfo<PsiMethod>> overrideOrImplementMethods(@NotNull PsiClass aClass,
                                                                                       @NotNull Collection<? extends PsiMethodMember> candidates,
                                                                                       boolean toCopyJavaDoc,
                                                                                       boolean toInsertAtOverride)