void (boolean checkLanguageLevel) { if (myBuilder.getTokenType() == PyTokenTypes.RARROW) { if (checkLanguageLevel && myContext.getLanguageLevel().isPython2()) { myBuilder.error(message("PARSE.function.return.type.annotations.py2")); } SyntaxTreeBuilder.Marker maybeReturnAnnotation = myBuilder.mark(); nextToken(); if (!myContext.getExpressionParser().parseSingleExpression(false)) { myBuilder.error(message("PARSE.expected.expression")); } maybeReturnAnnotation.done(PyElementTypes.ANNOTATION); } }