private @NotNull List<? extends T> sortVariants(@NotNull Stream<? extends T> result) {
    return result.sorted(myDescriptor).collect(Collectors.toList());
  }
private @NotNull List<? extends T> sortVariants(@NotNull Stream<? extends T> result)