private static @NotNull Collection<? extends IndexableIteratorBuilder> getReplacedParentEntityIteratorBuilder(@NotNull SourceRootEntity oldEntity,
                                                                                                                @NotNull SourceRootEntity newEntity) {
    if ((RootsExtensions.getCustomSourceRootProperties(oldEntity) == null) != (RootsExtensions.getCustomSourceRootProperties(newEntity) == null)) {
      return createIterators(newEntity);
    }
    if (RootsExtensions.getCustomSourceRootProperties(newEntity) != null &&
        !Objects.equals(RootsExtensions.getCustomSourceRootProperties(oldEntity).getPropertiesXmlTag(),
                        RootsExtensions.getCustomSourceRootProperties(newEntity).getPropertiesXmlTag())) {
      return createIterators(newEntity);
    }
    return Collections.emptyList();
  }
private static @NotNull Collection<? extends IndexableIteratorBuilder> getReplacedParentEntityIteratorBuilder(@NotNull SourceRootEntity oldEntity,
                                                                                                                @NotNull SourceRootEntity newEntity)