docs: static void enableStatisticManagementOnNodes(HazelcastClientInstanceImpl client, String cacheName,
                                                   boolean statOrMan, boolean enabled) {
          Collection<Member> members = client.getClientClusterService().getMemberList();
          Collection<Future> futures = new ArrayList<Future>();
          for (Member member : members) {
              try {
                  Address address = member.getAddress();
                  ClientMessage request = CacheManagementConfigCodec.encodeRequest(cacheName, statOrMan, enabled, address);
                  ClientInvocation clientInvocation = new ClientInvocation(client, request, cacheName, address);
                  Future<ClientMessage> future = clientInvocation.invoke();
                  futures.add(future);
              } catch (Exception e) {
                  sneakyThrow(e);
              }
          }
          // make sure all configs are created
          FutureUtil.waitWithDeadline(futures, CacheProxyUtil.AWAIT_COMPLETION_TIMEOUT_SECONDS, TimeUnit.SECONDS);
      }