void (@NotNull WatchRequestImpl newRequest, @NotNull Collection<WatchSymlinkRequest> watchSymlinkRequestsToAdd) { assert newRequest.isToWatchRecursively() : newRequest; WatchRootsUtil.collectByPrefix(mySymlinksByPath, newRequest.getRootPath(), e -> { if (e.getValue().hasValidTarget()) { watchSymlinkRequestsToAdd.add(e.getValue().getWatchRequest()); } }); }