Applies heuristic rule to a retain (format) operation on a document and returns resulting Delta.
document
Delta? apply(Delta document, int index, int length, NotusAttribute attribute);