code: @Override
      protected ChangeSet getFilteredChangeSet(ChangeSet changeSet) {
          changeSet = super.getFilteredChangeSet(changeSet);
          if (changeSet != null && !changeSet.isEmpty() && xmlFlatteningEnabled && reindexItemsOnComponentUpdates) {
              List<String> createdFiles = changeSet.getCreatedFiles();
              List<String> updatedFiles = changeSet.getUpdatedFiles();
              List<String> deletedFiles = changeSet.getDeletedFiles();
              List<String> newUpdatedFiles = new ArrayList<>(updatedFiles);
  
              if (CollectionUtils.isNotEmpty(createdFiles)) {
                  for (String path : createdFiles) {
                      if (isComponent(path)) {
                          addItemsThatIncludeComponentToUpdatedFiles(path, createdFiles, newUpdatedFiles, deletedFiles);
                      }
                  }
              }
  
              if (CollectionUtils.isNotEmpty(updatedFiles)) {
                  for (String path : updatedFiles) {
                      if (isComponent(path)) {
                          addItemsThatIncludeComponentToUpdatedFiles(path, createdFiles, newUpdatedFiles, deletedFiles);
                      }
                  }
              }
  
  
              if (CollectionUtils.isNotEmpty(deletedFiles)) {
                  for (String path : deletedFiles) {
                      if (isComponent(path)) {
                          addItemsThatIncludeComponentToUpdatedFiles(path, createdFiles, newUpdatedFiles, deletedFiles);
                      }
                  }
              }
  
              return new ChangeSet(createdFiles, newUpdatedFiles, deletedFiles);
          } else {
              return changeSet;
          }
      }
docs: Override to add pages/components that need to be updated because a component that they include was updated.
  
  @param changeSet original change set
  @return filtered change set