code: public static boolean equalsAny(Type t, Type... typesToMatch) throws IllegalArgumentException
    {
      Params.notNullOrEmpty(typesToMatch, "Types to match");
      if(t == null) {
        return false;
      }
      for(Type typeToMatch : typesToMatch) {
        if(t.equals(typeToMatch)) {
          return true;
        }
      }
      return false;
    }
docs: Test if a requested type is identity equal with one from a given types list. If <code>type</code> is null return
  false. If a type to match happened to be null is considered no match.
  
  @param t type to search for, possible null,
  @param typesToMatch types list to compare with.
  @return true if requested type is one from given types list.
  @throws IllegalArgumentException if <code>typesToMach</code> is empty.