docs: public static <T> T unitMap(Function<Map<String, List<Unit>>, T> function) {
          readWriteLock.readLock().lock();
          try {
              return function.apply(Collections.unmodifiableMap(unitMap));
          } finally {
              readWriteLock.readLock().unlock();
          }
      }