docs: public final AntlrDatatypeRuleToken ruleMethodModifier() throws RecognitionException {
          AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
  
          Token kw=null;
  
  
          	enterRule();
  
          try {
              // InternalSARL.g:9800:2: ( (kw= 'def' | kw= 'override' ) )
              // InternalSARL.g:9801:2: (kw= 'def' | kw= 'override' )
              {
              // InternalSARL.g:9801:2: (kw= 'def' | kw= 'override' )
              int alt254=2;
              int LA254_0 = input.LA(1);
  
              if ( (LA254_0==90) ) {
                  alt254=1;
              }
              else if ( (LA254_0==91) ) {
                  alt254=2;
              }
              else {
                  if (state.backtracking>0) {state.failed=true; return current;}
                  NoViableAltException nvae =
                      new NoViableAltException("", 254, 0, input);
  
                  throw nvae;
              }
              switch (alt254) {
                  case 1 :
                      // InternalSARL.g:9802:3: kw= 'def'
                      {
                      kw=(Token)match(input,90,FOLLOW_2); if (state.failed) return current;
                      if ( state.backtracking==0 ) {
  
                        			current.merge(kw);
                        			newLeafNode(kw, grammarAccess.getMethodModifierAccess().getDefKeyword_0());
                        		
                      }
  
                      }
                      break;
                  case 2 :
                      // InternalSARL.g:9808:3: kw= 'override'
                      {
                      kw=(Token)match(input,91,FOLLOW_2); if (state.failed) return current;
                      if ( state.backtracking==0 ) {
  
                        			current.merge(kw);
                        			newLeafNode(kw, grammarAccess.getMethodModifierAccess().getOverrideKeyword_1());
                        		
                      }
  
                      }
                      break;
  
              }
  
  
              }
  
              if ( state.backtracking==0 ) {
  
                	leaveRule();
  
              }
          }
  
              catch (RecognitionException re) {
                  recover(input,re);
                  appendSkippedTokens();
              }
          finally {
          }
          return current;
      }