docs: public static Predicate<Connectivity> hasType(final int... types) {
      final int[] extendedTypes = appendUnknownNetworkTypeToTypes(types);
      return new Predicate<Connectivity>() {
        @Override public boolean test(@NonNull Connectivity connectivity) throws Exception {
          for (int type : extendedTypes) {
            if (connectivity.type() == type) {
              return true;
            }
          }
          return false;
        }
      };
    }