code: private boolean isSameMemberWhenErased(Type type,
                                                 MethodSymbol method,
                                                 Type erasure) {
              return types.isSameType(erasure(types.memberType(type, method)),
                                      erasure);
          }
docs: Lookup the method as a member of the type.  Compare the
  erasures.
  @param type the class where to look for the method
  @param method the method to look for in class
  @param erasure the erasure of method