code: public void setDomains(@NonNull EnumSet<LogDomain> domains) {
          if (domains == null) { throw new IllegalArgumentException("domains cannot be null."); }
  
          logDomains = domains;
      }
docs: Sets the domains that will be considered for writing to
  the Android system log
  
  @param domains The domains to make active