docs: private static ImmutableSet<FactoryMethodDescriptor> getDeduplicatedMethodDescriptors(
        ImmutableSet<FactoryMethodDescriptor> methodDescriptors,
        ImmutableBiMap<FactoryMethodDescriptor, ImplementationMethodDescriptor>
            duplicateMethodDescriptors) {
  
      ImmutableSet.Builder<FactoryMethodDescriptor> deduplicatedMethodDescriptors =
          ImmutableSet.builder();
  
      for (FactoryMethodDescriptor methodDescriptor : methodDescriptors) {
        ImplementationMethodDescriptor duplicateMethodDescriptor =
            duplicateMethodDescriptors.get(methodDescriptor);
  
        FactoryMethodDescriptor newMethodDescriptor =
           (duplicateMethodDescriptor != null)
                ? methodDescriptor
                    .toBuilder()
                    .overridingMethod(true)
                    .publicMethod(duplicateMethodDescriptor.publicMethod())
                    .returnType(duplicateMethodDescriptor.returnType())
                    .build()
                : methodDescriptor;
        deduplicatedMethodDescriptors.add(newMethodDescriptor);
      }
  
      return deduplicatedMethodDescriptors.build();
    }