docs: static void apply(final String patchId, final Collection<ContentModification> modifications, final PatchEntry patchEntry, final ContentItemFilter filter) {
          for (final ContentModification modification : modifications) {
  
              final ContentItem item = modification.getItem();
              // Check if we accept the item
              if (!filter.accepts(item)) {
                  continue;
              }
  
              final Location location = new Location(item);
              final ContentEntry contentEntry = new ContentEntry(patchId, modification);
              ContentTaskDefinition definition = patchEntry.get(location);
              if (definition == null) {
                  definition = new ContentTaskDefinition(location, contentEntry, false);
                  patchEntry.put(location, definition);
              } else {
                  definition.setTarget(contentEntry);
              }
          }
      }