private static @NotNull Set<ArrangementSettingsToken> getGroupingRules(@NotNull ArrangementSettings settings) {
    Set<ArrangementSettingsToken> groupingRules = new HashSet<>();
    for (ArrangementGroupingRule rule : settings.getGroupings()) {
      groupingRules.add(rule.getGroupingType());
    }
    return groupingRules;
  }
private static @NotNull Set<ArrangementSettingsToken> getGroupingRules(@NotNull ArrangementSettings settings)