void (@NotNull Collection<? extends Change> changes) { List<Change> changesToInclude = new ArrayList<>(changes); Set<Change> otherChanges = new HashSet<>(); for (Change change : changes) { if (!(change instanceof ChangeListChange)) { otherChanges.add(change); } } // include all related ChangeListChange by a simple Change if (!otherChanges.isEmpty()) { for (Change change : getAllChanges()) { if (change instanceof ChangeListChange && otherChanges.contains(change)) { changesToInclude.add(change); } } } myViewer.setIncludedChanges(changesToInclude); }