void (PsiBuilder builder, PsiBuilder.Marker marker, IElementType type) { builder.advanceLexer(); checkMatches(builder, RegExpTT.NAME, RegExpBundle.message("parse.error.group.name.expected")); checkMatches(builder, type, RegExpBundle.message("parse.error.unclosed.group.reference")); marker.done(RegExpElementTypes.NAMED_GROUP_REF); }