IElementType (final int indent) { PsiBuilder.Marker lastTextEnd = null; IElementType type = getTokenType(); while (type == TEXT || type == INDENT || type == EOL) { advanceLexer(); if (type == TEXT) { if (lastTextEnd != null && myIndent < indent) { break; } if (lastTextEnd != null) { lastTextEnd.drop(); } lastTextEnd = mark(); } type = getTokenType(); } rollBackToEol(); assert lastTextEnd != null; lastTextEnd.rollbackTo(); return YAMLElementTypes.SCALAR_PLAIN_VALUE; }