docs: public final void genericMethodOrConstructorRest() throws RecognitionException {
  		int genericMethodOrConstructorRest_StartIndex = input.index();
  
  		try {
  			if ( state.backtracking>0 && alreadyParsedRule(input, 24) ) { return; }
  
  			// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:379:5: ( ( type | 'void' ) Identifier methodDeclaratorRest | Identifier constructorDeclaratorRest )
  			int alt38=2;
  			int LA38_0 = input.LA(1);
  			if ( (LA38_0==Identifier) ) {
  				int LA38_1 = input.LA(2);
  				if ( (LA38_1==Identifier||LA38_1==47||LA38_1==53||LA38_1==59) ) {
  					alt38=1;
  				}
  				else if ( (LA38_1==36) ) {
  					alt38=2;
  				}
  
  				else {
  					if (state.backtracking>0) {state.failed=true; return;}
  					int nvaeMark = input.mark();
  					try {
  						input.consume();
  						NoViableAltException nvae =
  							new NoViableAltException("", 38, 1, input);
  						throw nvae;
  					} finally {
  						input.rewind(nvaeMark);
  					}
  				}
  
  			}
  			else if ( (LA38_0==65||LA38_0==67||LA38_0==71||LA38_0==77||LA38_0==85||LA38_0==92||LA38_0==94||LA38_0==105||LA38_0==118) ) {
  				alt38=1;
  			}
  
  			else {
  				if (state.backtracking>0) {state.failed=true; return;}
  				NoViableAltException nvae =
  					new NoViableAltException("", 38, 0, input);
  				throw nvae;
  			}
  
  			switch (alt38) {
  				case 1 :
  					// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:379:7: ( type | 'void' ) Identifier methodDeclaratorRest
  					{
  					// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:379:7: ( type | 'void' )
  					int alt37=2;
  					int LA37_0 = input.LA(1);
  					if ( (LA37_0==Identifier||LA37_0==65||LA37_0==67||LA37_0==71||LA37_0==77||LA37_0==85||LA37_0==92||LA37_0==94||LA37_0==105) ) {
  						alt37=1;
  					}
  					else if ( (LA37_0==118) ) {
  						alt37=2;
  					}
  
  					else {
  						if (state.backtracking>0) {state.failed=true; return;}
  						NoViableAltException nvae =
  							new NoViableAltException("", 37, 0, input);
  						throw nvae;
  					}
  
  					switch (alt37) {
  						case 1 :
  							// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:379:8: type
  							{
  							pushFollow(FOLLOW_type_in_genericMethodOrConstructorRest801);
  							type();
  							state._fsp--;
  							if (state.failed) return;
  							}
  							break;
  						case 2 :
  							// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:379:15: 'void'
  							{
  							match(input,118,FOLLOW_118_in_genericMethodOrConstructorRest805); if (state.failed) return;
  							}
  							break;
  
  					}
  
  					match(input,Identifier,FOLLOW_Identifier_in_genericMethodOrConstructorRest808); if (state.failed) return;
  					pushFollow(FOLLOW_methodDeclaratorRest_in_genericMethodOrConstructorRest810);
  					methodDeclaratorRest();
  					state._fsp--;
  					if (state.failed) return;
  					}
  					break;
  				case 2 :
  					// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:380:7: Identifier constructorDeclaratorRest
  					{
  					match(input,Identifier,FOLLOW_Identifier_in_genericMethodOrConstructorRest818); if (state.failed) return;
  					pushFollow(FOLLOW_constructorDeclaratorRest_in_genericMethodOrConstructorRest820);
  					constructorDeclaratorRest();
  					state._fsp--;
  					if (state.failed) return;
  					}
  					break;
  
  			}
  		}
  		catch (RecognitionException re) {
  			reportError(re);
  			recover(input,re);
  		}
  		finally {
  			// do for sure before leaving
  			if ( state.backtracking>0 ) { memoize(input, 24, genericMethodOrConstructorRest_StartIndex); }
  
  		}
  	}