function getDecorationsChecker(start: number, end: number) {
        // Find out if any of our matching range is already occupied
        // by another decorator. If so, discard the match. Otherwise, store
        // the component key for rendering.
        if (canOccupySlice(decorations, start, end)) {
          occupySlice(decorations, start, end, ii + DELIMITER + counter);
          counter++;
        }
      }
Returns true if this CompositeDraftDecorator has the same decorators as
the given array. This does a reference check, so the decorators themselves
have to be the same objects.