ParsingContext (@NotNull SyntaxTreeBuilder builder, @NotNull LanguageLevel languageLevel) { return new ParsingContext(builder, languageLevel) { @NotNull private final StatementParsing myStatementParsing = new StatementParsing(this) { @Override @NotNull protected IElementType getReferenceType() { return PyDocstringTokenTypes.DOC_REFERENCE; } }; @NotNull private final ExpressionParsing myExpressionParsing = new ExpressionParsing(this) { @Override @NotNull protected IElementType getReferenceType() { return PyDocstringTokenTypes.DOC_REFERENCE; } }; @Override @NotNull public StatementParsing getStatementParser() { return myStatementParsing; } @Override @NotNull public ExpressionParsing getExpressionParser() { return myExpressionParsing; } }; }