code: public boolean appliesTo(ResolvedType type) {
      return hasWildcards(original)
              && wildcardMatch(type, original)
              || exactMatch(original, type);
    }
docs: Check if an alternate applies to type.
  
  @param type the source
  @return the boolean