IElementType (int indent) { final IElementType tokenType = getTokenType(); assert YAMLElementTypes.SCALAR_VALUES.contains(tokenType) : "Scalar value expected!"; if (tokenType == SCALAR_LIST || tokenType == SCALAR_TEXT) { return parseMultiLineScalar(tokenType); } else if (tokenType == TEXT) { return parseMultiLinePlainScalar(indent); } else if (tokenType == SCALAR_DSTRING || tokenType == SCALAR_STRING) { return parseQuotedString(); } else { advanceLexer(); return null; } }