docs: public BetaConstraints createBetaNodeConstraint(final BuildContext context,
                                                      final List<BetaNodeFieldConstraint> list,
                                                      final boolean disableIndexing) {
          BetaConstraints constraints;
          switch ( list.size() ) {
              case 0 :
                  constraints = EmptyBetaConstraints.getInstance();
                  break;
              case 1 :
                  constraints = new SingleBetaConstraints( list.get( 0 ),
                                                           context.getKnowledgeBase().getConfiguration(),
                                                           disableIndexing );
                  break;
              case 2 :
                  constraints = new DoubleBetaConstraints( list.toArray( new BetaNodeFieldConstraint[list.size()] ),
                                                           context.getKnowledgeBase().getConfiguration(),
                                                           disableIndexing );
                  break;
              case 3 :
                  constraints = new TripleBetaConstraints( list.toArray( new BetaNodeFieldConstraint[list.size()] ),
                                                           context.getKnowledgeBase().getConfiguration(),
                                                           disableIndexing );
                  break;
              case 4 :
                  constraints = new QuadroupleBetaConstraints( list.toArray( new BetaNodeFieldConstraint[list.size()] ),
                                                               context.getKnowledgeBase().getConfiguration(),
                                                               disableIndexing );
                  break;
              default :
                  constraints = new DefaultBetaConstraints( list.toArray( new BetaNodeFieldConstraint[list.size()] ),
                                                            context.getKnowledgeBase().getConfiguration(),
                                                            disableIndexing );
          }
          return constraints;
      }