void (@NotNull PsiAssertStatement assertStatement) { super.visitAssertStatement(assertStatement); if (assertStatement.getAssertCondition() == null) { return; } final PsiElement lastLeaf = PsiTreeUtil.getDeepestLast(assertStatement); if (lastLeaf instanceof PsiErrorElement || PsiUtil.isJavaToken(lastLeaf, JavaTokenType.SEMICOLON) && PsiTreeUtil.prevLeaf(lastLeaf) instanceof PsiErrorElement) { return; } if (isVisibleHighlight(assertStatement)) { registerStatementError(assertStatement); } else { registerError(assertStatement); } }