code: @Override
    public boolean enables(DiagnosticGroup group) {
      for (WarningsGuard guard : guards) {
        if (guard.enables(group)) {
          return true;
        } else if (guard.disables(group)) {
          return false;
        }
      }
  
      return false;
    }
docs: Determines whether this guard will "elevate" the status of any disabled
  diagnostic type in the group to a warning or an error.