private static @NotNull Map<String, LogEntryPath> toImmutable(@NotNull List<LogEntryPath.Builder> paths) {
    Map<String, LogEntryPath> result = new HashMap<>();
    for (LogEntryPath.Builder path : paths) {
      result.put(path.getPath(), path.build());
    }
    return Collections.unmodifiableMap(result);
  }
private static @NotNull Map<String, LogEntryPath> toImmutable(@NotNull List<LogEntryPath.Builder> paths)