boolean (PsiIfStatement ifStatement) { if (PsiUtilCore.hasErrorElementChild(ifStatement)) { return false; } IfConditionalModel model = IfConditionalModel.from(ifStatement, true); if (model != null) { ConditionalExpressionGenerator generator = ConditionalExpressionGenerator.from(model); if (generator != null && generator.getTokenType().isEmpty()) return true; } return !ignoreAssertStatements && isSimplifiableAssert(ifStatement); }