code: @NotNull
      public static <T> ComparatorCompat<T> chain(@NotNull Comparator<T> comparator) {
          return new ComparatorCompat<T>(comparator);
      }
docs: Allows to build comparators with method chaining.
  
  @param <T> the type of the objects compared by the comparator
  @param comparator  the comparator to be chained
  @return a {@code ComparatorCompat} instance