boolean (final PsiBuilder builder, final IElementType token, @NotNull @NlsContexts.ParsingError String message) { if (builder.getTokenType() == token) { builder.advanceLexer(); return true; } else { builder.error(message); return false; } }