code: boolean isSubGroup(DiagnosticGroup group) {
      for (DiagnosticType type : group.types) {
        if (!matches(type)) {
          return false;
        }
      }
      return true;
    }
docs: Returns whether all of the types in the given group are in this group.