public final TypeParamContext typeParam() throws RecognitionException {
		TypeParamContext _localctx = new TypeParamContext(_ctx, getState());
		enterRule(_localctx, 154, RULE_typeParam);
		int _la;
		try {
			setState(1657);
			switch ( getInterpreter().adaptivePredict(_input,222,_ctx) ) {
			case 1:
				enterOuterAlt(_localctx, 1);
				{
				setState(1638); match(ID);
				setState(1642);
				_errHandler.sync(this);
				_la = _input.LA(1);
				while (_la==T__35) {
					{
					{
					setState(1639); annotation();
					}
					}
					setState(1644);
					_errHandler.sync(this);
					_la = _input.LA(1);
				}
				setState(1645); match(T__10);
				setState(1646); type();
				}
				break;
			case 2:
				enterOuterAlt(_localctx, 2);
				{
				setState(1647); type();
				setState(1649);
				_la = _input.LA(1);
				if (_la==ID) {
					{
					setState(1648); match(ID);
					}
				}

				setState(1654);
				_errHandler.sync(this);
				_la = _input.LA(1);
				while (_la==T__35) {
					{
					{
					setState(1651); annotation();
					}
					}
					setState(1656);
					_errHandler.sync(this);
					_la = _input.LA(1);
				}
				}
				break;
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}