LogEntryConsumer (@NotNull final Ref<Long> latest) { return logEntry -> { final Map changedPaths = logEntry.getChangedPaths(); for (Object o : changedPaths.values()) { final LogEntryPath path = (LogEntryPath)o; if ((path.getType() == 'D') && (myRelativeUrl.equals(path.getPath()))) { latest.set(logEntry.getRevision()); throw new SvnBindException(message("error.latest.existing.revision.found.for.url", myRelativeUrl)); } } }; }