void (@NotNull SwitchStatement statement, @NotNull List<JavacReferenceFinder.FullCase> cases) { statement.getCaseStatements().clear(); statement.getCaseStatements().addAll(cases.stream().map(t -> t.statement).collect(Collectors.toList())); statement.getCaseEdges().clear(); statement.getCaseEdges().addAll(cases.stream().map(t -> t.edges).collect(Collectors.toList())); statement.getCaseValues().clear(); statement.getCaseValues().addAll(cases.stream().map(t -> t.exprents).collect(Collectors.toList())); }