void (@NotNull GrThrowStatement throwStatement) { final GrExpression exception = throwStatement.getException(); if (exception == null) { builder.append("throw ;"); return; } writeStatement(throwStatement, new StatementWriter() { @Override public void writeStatement(StringBuilder builder, ExpressionContext context) { builder.append("throw "); writeExpression(exception, builder, context); //todo add exception to method 'throws' list builder.append(';'); } }); }