void (@NotNull PyPattern node) { processPattern(node); retargetOutgoingPatternEdges(pattern, (oldScope, instr) -> { // Mismatch in a non-OR pattern means mismatch of the containing pattern as well return instr.isMatched() ? oldScope : pattern; }); }