void () { doTest("a<<b", """ Element(ROOT) PsiElement(LETTER)('a') PsiElement(COLLAPSED)('') PsiElement(OTHER)('<') PsiElement(OTHER)('<') PsiElement(LETTER)('b') """, builder -> { builder.advanceLexer(); builder.mark().collapse(COLLAPSED); while (builder.getTokenType() != null) { builder.advanceLexer(); } } ); }