boolean (PsiStatement statement, @NotNull PsiVariable variable) { if (!(statement instanceof PsiAssertStatement assertStatement)) { return false; } final PsiExpression condition = assertStatement.getAssertCondition(); return ComparisonUtils.isNullComparison(condition, variable, false); }