private static boolean areDuplicateMethodDescriptors(
      FactoryMethodDescriptor factory,
      ImplementationMethodDescriptor implementation) {

    if (!factory.name().equals(implementation.name())) {
      return false;
    }

    // Descriptors are identical if they have the same passed types in the same order.
    return MoreTypes.equivalence().pairwise().equivalent(
        Iterables.transform(factory.passedParameters(), Parameter.TYPE),
        Iterables.transform(implementation.passedParameters(), Parameter.TYPE));
  }
private static boolean areDuplicateMethodDescriptors ( FactoryMethodDescriptor factory , ImplementationMethodDescriptor implementation ) { if ( ! factory . name ( ) . equals ( implementation . name ( ) ) ) { return false ; } return MoreTypes . equivalence ( ) . pairwise ( ) . equivalent ( Iterables . transform ( factory . passedParameters ( ) , Parameter . TYPE ) , Iterables . transform ( implementation . passedParameters ( ) , Parameter . TYPE ) ) ; }
Returns true if the given {@link FactoryMethodDescriptor} and
{@link ImplementationMethodDescriptor} are duplicates.

<p>Descriptors are duplicates if they have the same name and if they have the same passed types
in the same order.