docs: public void executeOnEntriesInternal(EntryProcessor entryProcessor, Predicate predicate, List<Data> result) {
          try {
              Map<Integer, Object> results;
              if (predicate instanceof PartitionPredicate) {
                  PartitionPredicate partitionPredicate = (PartitionPredicate) predicate;
                  Data key = toData(partitionPredicate.getPartitionKey());
                  int partitionId = partitionService.getPartitionId(key);
                  handleHazelcastInstanceAwareParams(partitionPredicate.getTarget());
  
                  OperationFactory operation = operationProvider.createPartitionWideEntryWithPredicateOperationFactory(
                          name, entryProcessor, partitionPredicate.getTarget());
                  results = operationService.invokeOnPartitions(SERVICE_NAME, operation, singletonList(partitionId));
              } else {
                  OperationFactory operation = operationProvider.createPartitionWideEntryWithPredicateOperationFactory(
                          name, entryProcessor, predicate);
                  results = operationService.invokeOnAllPartitions(SERVICE_NAME, operation);
              }
              for (Object object : results.values()) {
                  if (object != null) {
                      MapEntries mapEntries = (MapEntries) object;
                      for (int i = 0; i < mapEntries.size(); i++) {
                          result.add(mapEntries.getKey(i));
                          result.add(mapEntries.getValue(i));
                      }
                  }
              }
          } catch (Throwable t) {
              throw rethrow(t);
          }
      }