void (@NotNull PsiIfStatement statement) { final PsiExpression condition = statement.getCondition(); final Object result = ExpressionUtils.computeConstantExpression(condition); if (result != null && result.equals(Boolean.FALSE)) { return; } super.visitIfStatement(statement); }