boolean (PsiBuilder builder, IElementType element1, IElementType element2) { if (element1 != builder.getTokenType()) return false; Marker rb = builder.mark(); builder.advanceLexer(); boolean res = (!builder.eof() && element2 == builder.getTokenType()); rb.rollbackTo(); return res; }