Code review comment: thats what that method returns

Code before review:
private ParserRuleContext getNextRuleForVarName() {
ParserRuleContext parentCtx = getParentContext();
if (parentCtx == ParserRuleContext.REQUIRED_PARAM || parentCtx == ParserRuleContext.PARAM_LIST) {
return ParserRuleContext.REQUIRED_PARAM_NAME_RHS;
} else if (parentCtx == ParserRuleContext.DEFAULTABLE_PARAM) {
return ParserRuleContext.ASSIGN_OP;
} else if (parentCtx == ParserRuleContext.REST_PARAM) {
return ParserRuleContext.PARAM_END;
} else if (parentCtx == ParserRuleContext.FOREACH_STMT) {
return ParserRuleContext.IN_KEYWORD;
} else if (parentCtx == ParserRuleContext.TYPED_BINDING_PATTERN) {
return getNextRuleForTypedBindingPattern();
} else if (parentCtx == ParserRuleContext.CAPTURE_BINDING_PATTERN) {
return getNextRuleForTypedBindingPattern();
} else if (parentCtx == ParserRuleContext.LIST_BINDING_PATTERN) {
return getNextRuleForTypedBindingPattern();
} else if (parentCtx == ParserRuleContext.REST_BINDING_PATTERN) {
return getNextRuleForTypedBindingPattern();
} else if (parentCtx == ParserRuleContext.FIELD_BINDING_PATTERN) {
return getNextRuleForTypedBindingPattern();
} else if (parentCtx == ParserRuleContext.MAPPING_BINDING_PATTERN) {
return getNextRuleForTypedBindingPattern();
}  else if (isStatement(parentCtx) || parentCtx == ParserRuleContext.LISTENER_DECL ||
parentCtx == ParserRuleContext.CONSTANT_DECL) {
return ParserRuleContext.VAR_DECL_STMT_RHS;
} else if (parentCtx == ParserRuleContext.RECORD_FIELD) {
return ParserRuleContext.FIELD_DESCRIPTOR_RHS;
} else if (parentCtx == ParserRuleContext.ARG_LIST) {
return ParserRuleContext.NAMED_OR_POSITIONAL_ARG_RHS;
} else if (parentCtx == ParserRuleContext.OBJECT_MEMBER) {
return ParserRuleContext.OBJECT_FIELD_RHS;
} else if (parentCtx == ParserRuleContext.ARRAY_TYPE_DESCRIPTOR) {
return ParserRuleContext.CLOSE_BRACKET;
} else if (parentCtx == ParserRuleContext.KEY_SPECIFIER) {
return ParserRuleContext.TABLE_KEY_RHS;
} else if (parentCtx == ParserRuleContext.LET_EXPR_LET_VAR_DECL ||
parentCtx == ParserRuleContext.LET_CLAUSE_LET_VAR_DECL) {
return ParserRuleContext.ASSIGN_OP;
} else if (parentCtx == ParserRuleContext.ANNOTATION_DECL) {
return ParserRuleContext.ANNOT_OPTIONAL_ATTACH_POINTS;
} else if (parentCtx == ParserRuleContext.QUERY_EXPRESSION) {
return ParserRuleContext.IN_KEYWORD;
} else {
throw new IllegalStateException(parentCtx.toString());
}
}

Line under review: return getNextRuleForTypedBindingPattern();

Code after addressing the review:
private ParserRuleContext getNextRuleForVarName() {
ParserRuleContext parentCtx = getParentContext();
if (parentCtx == ParserRuleContext.REQUIRED_PARAM || parentCtx == ParserRuleContext.PARAM_LIST) {
return ParserRuleContext.REQUIRED_PARAM_NAME_RHS;
} else if (parentCtx == ParserRuleContext.DEFAULTABLE_PARAM) {
return ParserRuleContext.ASSIGN_OP;
} else if (parentCtx == ParserRuleContext.REST_PARAM) {
return ParserRuleContext.PARAM_END;
} else if (parentCtx == ParserRuleContext.FOREACH_STMT) {
return ParserRuleContext.IN_KEYWORD;
} else if (parentCtx == ParserRuleContext.TYPED_BINDING_PATTERN) {
return getNextRuleForTypedBindingPattern();
} else if (parentCtx == ParserRuleContext.CAPTURE_BINDING_PATTERN) {
return getNextRuleForTypedBindingPattern();
} else if (parentCtx == ParserRuleContext.LIST_BINDING_PATTERN ||
parentCtx == ParserRuleContext.LIST_BP_OR_TUPLE_TYPE_MEMBER) {
return getNextRuleForTypedBindingPattern();
} else if (parentCtx == ParserRuleContext.REST_BINDING_PATTERN) {
return getNextRuleForTypedBindingPattern();
} else if (parentCtx == ParserRuleContext.FIELD_BINDING_PATTERN) {
return getNextRuleForTypedBindingPattern();
} else if (parentCtx == ParserRuleContext.MAPPING_BINDING_PATTERN) {
return getNextRuleForTypedBindingPattern();
}  else if (isStatement(parentCtx) || parentCtx == ParserRuleContext.LISTENER_DECL ||
parentCtx == ParserRuleContext.CONSTANT_DECL) {
return ParserRuleContext.VAR_DECL_STMT_RHS;
} else if (parentCtx == ParserRuleContext.RECORD_FIELD) {
return ParserRuleContext.FIELD_DESCRIPTOR_RHS;
} else if (parentCtx == ParserRuleContext.ARG_LIST) {
return ParserRuleContext.NAMED_OR_POSITIONAL_ARG_RHS;
} else if (parentCtx == ParserRuleContext.OBJECT_MEMBER) {
return ParserRuleContext.OBJECT_FIELD_RHS;
} else if (parentCtx == ParserRuleContext.ARRAY_TYPE_DESCRIPTOR) {
return ParserRuleContext.CLOSE_BRACKET;
} else if (parentCtx == ParserRuleContext.KEY_SPECIFIER) {
return ParserRuleContext.TABLE_KEY_RHS;
} else if (parentCtx == ParserRuleContext.LET_EXPR_LET_VAR_DECL ||
parentCtx == ParserRuleContext.LET_CLAUSE_LET_VAR_DECL) {
return ParserRuleContext.ASSIGN_OP;
} else if (parentCtx == ParserRuleContext.ANNOTATION_DECL) {
return ParserRuleContext.ANNOT_OPTIONAL_ATTACH_POINTS;
} else if (parentCtx == ParserRuleContext.QUERY_EXPRESSION) {
return ParserRuleContext.IN_KEYWORD;
} else {
throw new IllegalStateException(parentCtx.toString());
}
}