void (@NotNull PsiIfStatement statement) { if (myFound) { return; } final PsiExpression condition = statement.getCondition(); final Object value = ExpressionUtils.computeConstantExpression(condition); if (Boolean.FALSE != value) { final PsiStatement thenBranch = statement.getThenBranch(); if (thenBranch != null) { thenBranch.accept(this); } } if (Boolean.TRUE != value) { final PsiStatement elseBranch = statement.getElseBranch(); if (elseBranch != null) { elseBranch.accept(this); } } }