code: private boolean isBucketProcessed(int bucketId) {
          synchronized (actualProcessingBuckets) {
              for (Bucket<Data> oneBucket : this.actualProcessingBuckets) {
                  if (oneBucket.getBucketId() == bucketId) {
                      return true;
                  }
              }
          }
          return false;
      }
docs: Gets a bucket id and returns <code>true</code> if the bucket is currently processed, otherwise <code>false</code>