Collection<Change> (@NotNull ChangeListManager changeListManager, @NotNull Collection<? extends Change> originalChanges) { ObjectOpenHashSet<Change> allChanges = new ObjectOpenHashSet<>(changeListManager.getAllChanges()); return ContainerUtil.mapNotNull(originalChanges, allChanges::get); }