void (@NotNull ShelvedChangeList list, @NotNull List<ShelvedBinaryFile> binaryFiles) { for (Iterator<ShelvedBinaryFile> shelvedChangeListIterator = list.getBinaryFiles().iterator(); shelvedChangeListIterator.hasNext(); ) { final ShelvedBinaryFile binaryFile = shelvedChangeListIterator.next(); for (ShelvedBinaryFile newBinary : binaryFiles) { if (Objects.equals(newBinary.BEFORE_PATH, binaryFile.BEFORE_PATH) && Objects.equals(newBinary.AFTER_PATH, binaryFile.AFTER_PATH)) { shelvedChangeListIterator.remove(); } } } }