Set<WatchRequest> (@NotNull Collection<String> rootPaths, boolean watchRecursively) { if (rootPaths.isEmpty()) { return Collections.emptySet(); } else if (watchRecursively) { return replaceWatchedRoots(Collections.emptySet(), rootPaths, null); } else { return replaceWatchedRoots(Collections.emptySet(), null, rootPaths); } }