boolean (@NotNull String testIdentifier, int testRunnerCount, int testRunnerIndex) { var value = BUCKETS.get(testIdentifier); if (value != null) { var isMatchedBucket = value == testRunnerIndex; if (IS_VERBOSE_LOG_ENABLED) { System.out.printf( "Fair bucket match: test identifier `%s` (already sieved to buckets), runner count %s, runner index %s, is matching bucket %s%n", testIdentifier, testRunnerCount, testRunnerIndex, isMatchedBucket); } return isMatchedBucket; } else { BUCKETS.put(testIdentifier, CYCLIC_BUCKET_COUNTER.getAndIncrement()); } if (CYCLIC_BUCKET_COUNTER.get() == testRunnerCount) CYCLIC_BUCKET_COUNTER.set(0); var isMatchedBucket = BUCKETS.get(testIdentifier) == testRunnerIndex; if (IS_VERBOSE_LOG_ENABLED) { System.out.printf("Fair bucket match: test identifier `%s`, runner count %s, runner index %s, is matching bucket %s%n", testIdentifier, testRunnerCount, testRunnerIndex, isMatchedBucket); } return isMatchedBucket; }