boolean (final FilePatch patch, final List<ShelvedChange> changes) { for (ShelvedChange change : changes) { if (Objects.equals(patch.getBeforeName(), change.getBeforePath())) { return true; } } return false; }