public static boolean erasesToAnyOf(DeclaredType type, QualifiedName... possibilities) {
    if (type == null) {
      return false;
    }
    String erasedType = type.asElement().toString();
    for (QualifiedName possibility : possibilities) {
      if (unshadedName(possibility.toString()).equals(erasedType)) {
        return true;
      }
    }
    return false;
  }
public static boolean erasesToAnyOf ( DeclaredType type , QualifiedName ... possibilities ) { if ( type == null ) { return false ; } String erasedType = type . asElement ( ) . toString ( ) ; for ( QualifiedName possibility : possibilities ) { if ( unshadedName ( possibility . toString ( ) ) . equals ( erasedType ) ) { return true ; } } return false ; }
Returns true if {@code type} erases to any of {@code possibilities}.