code: private static boolean hasBrackets(Sgroup sgroup) {
          switch (sgroup.getType()) {
              case CtabStructureRepeatUnit:
              case CtabAnyPolymer:
              case CtabCrossLink:
              case CtabComponent:
              case CtabMixture:
              case CtabFormulation:
              case CtabGraft:
              case CtabModified:
              case CtabMonomer:
              case CtabCopolymer:
              case CtabMultipleGroup:
                  return true;
              case CtabGeneric:
                  List<SgroupBracket> brackets = sgroup.getValue(SgroupKey.CtabBracket);
                  return brackets != null && !brackets.isEmpty();
              default:
                  return false;
          }
      }
docs: Determine whether and Sgroup type has brackets to be placed.
  @param sgroup the Sgroup
  @return brackets need to be placed