private void collectConditionsForIfStatementAndChain(PsiIfStatement statement, Set<? super PsiExpression> conditions, int depth) {
      if (depth > LIMIT_DEPTH || !myAnalyzedAndStatements.add(statement)) return;
      final PsiExpression condition = statement.getCondition();
      collectConditionsForExpression(condition, conditions, JavaTokenType.ANDAND);
      final PsiStatement branch = ControlFlowUtils.stripBraces(statement.getThenBranch());
      if (branch instanceof PsiIfStatement ifStatement) {
        collectConditionsForIfStatementAndChain(ifStatement, conditions, depth + 1);
      }
      if (branch instanceof PsiBlockStatement blockStatement) {
        PsiStatement[] statements = blockStatement.getCodeBlock().getStatements();
        if (statements.length == 0) return;
        if (statements[0] instanceof PsiIfStatement ifStatement) {
          collectConditionsForIfStatementAndChain(ifStatement, conditions, depth + 1);
        }
      }
    }
private void collectConditionsForIfStatementAndChain(PsiIfStatement statement, Set<? super PsiExpression> conditions, int depth)