void (@NotNull PyOrPattern orPattern) { Set<String> allBoundNamesInOrPattern = new HashSet<>(); for (PyPattern alternative : orPattern.getAlternatives()) { boundNamesPerOrBranch.push(new HashSet<>()); alternative.accept(this); allBoundNamesInOrPattern.addAll(boundNamesPerOrBranch.peek()); boundNamesPerOrBranch.pop(); } boundNamesPerOrBranch.peek().addAll(allBoundNamesInOrPattern); }