docs: private static SQLPatternPart makeGroup(boolean capture, String captureLabel, SQLPatternPart part)
      {
          // Need an outer part if capturing something that's already a group (capturing or not)
          boolean alreadyGroup = (part.m_flags & (SQLPatternFactory.GROUP | SQLPatternFactory.CAPTURE)) != 0;
          SQLPatternPart retPart = alreadyGroup ? new SQLPatternPartElement(part) : part;
          if (capture) {
              retPart.m_flags |= SQLPatternFactory.CAPTURE;
              retPart.setCaptureLabel(captureLabel);
          }
          else {
              retPart.m_flags |= SQLPatternFactory.GROUP;
          }
          return retPart;
      }