docs: public BaseDescr statement( PackageDescrBuilder pkg ) throws RecognitionException {
          BaseDescr descr = null;
          try {
              if ( helper.validateIdentifierKey( DroolsSoftKeywords.IMPORT ) ) {
                  descr = importStatement( pkg );
                  if ( state.failed ) return descr;
              } else if ( helper.validateIdentifierKey( DroolsSoftKeywords.GLOBAL ) ) {
                  descr = globalStatement( pkg );
                  if ( state.failed ) return descr;
              } else if ( helper.validateIdentifierKey( DroolsSoftKeywords.DECLARE ) ) {
                  descr = declare( pkg );
                  if ( state.failed ) return descr;
              } else if ( helper.validateIdentifierKey( DroolsSoftKeywords.RULE ) ) {
                  descr = rule( pkg );
                  if ( state.failed ) return descr;
              } else if ( helper.validateIdentifierKey( DroolsSoftKeywords.QUERY ) ) {
                  descr = query( pkg );
                  if ( state.failed ) return descr;
              } else if ( helper.validateIdentifierKey( DroolsSoftKeywords.FUNCTION ) ) {
                  descr = function( pkg );
                  if ( state.failed ) return descr;
              } else if ( helper.validateAttribute( 1 ) ) {
                  descr = attribute( pkg );
                  if ( state.failed ) return descr;
              }
          } catch ( RecognitionException e ) {
              helper.reportError( e );
          } catch ( Exception e ) {
              helper.reportError( e );
          }
          return descr;
      }