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