public static @Nullable Configurable find(@NotNull Predicate<? super Configurable> visitor, Configurable @NotNull [] configurables) {
    for (Configurable configurable : configurables) {
      if (visitor.test(configurable)) {
        return configurable;
      }
    }

    for (Configurable configurable : configurables) {
      if (configurable instanceof Configurable.Composite composite) {
        Configurable result = find(visitor, composite.getConfigurables());
        if (result != null) {
          return result;
        }
      }
    }
    return null;
  }
public static @Nullable Configurable find(@NotNull Predicate<? super Configurable> visitor, Configurable @NotNull [] configurables)