void () { if (token() == XmlTokenType.XML_CHAR_ENTITY_REF) { advance(); } else if (token() == XmlTokenType.XML_ENTITY_REF_TOKEN) { final PsiBuilder.Marker ref = mark(); advance(); ref.done(XmlElementType.XML_ENTITY_REF); } else { assert false : "Unexpected token"; } }