void (@NotNull PsiAssertStatement statement) { PsiExpression condition = statement.getAssertCondition(); if (condition == null) { throw evaluateException("Assert condition expected in: " + statement.getText()); } PsiExpression description = statement.getAssertDescription(); String descriptionText = description != null ? description.getText() : ""; myResult = new AssertStatementEvaluator(buildFromJavaCode("if (!(" + condition.getText() + ")) { " + "throw new java.lang.AssertionError(" + descriptionText + ");}", "", statement)); }