code: public static List<CloneGroup> detect(CloneIndex cloneIndex, Collection<Block> fileBlocks) {
      if (fileBlocks.isEmpty()) {
        return Collections.emptyList();
      }
      OriginalCloneDetectionAlgorithm reporter = new OriginalCloneDetectionAlgorithm(cloneIndex);
      reporter.findClones(fileBlocks);
      return reporter.filter.getResult();
    }
docs: Performs detection and returns list of clone groups between file (which represented as a collection of blocks) and index.
  Note that this method ignores blocks for this file, that will be retrieved from index.