code: @NonNull
    public static <K, V> Map<K, V> assertNotNullOrEmpty(Map<K, V> data, @Nullable String name) {
      if (isNullOrEmpty(data)) {
        throw new NullPointerException(name + " cannot be null or empty");
      }
      return data;
    }
docs: Throws a {@link NullPointerException} if the given map is null or empty.