private static CompletionSorter withoutLiveTemplatesWeigher(@Nullable CompletionSorter sorter,
                                                              @NotNull CompletionParameters parameters,
                                                              @NotNull PrefixMatcher prefixMatcher) {
    if (sorter == null) {
      sorter = getCompletionService().defaultSorter(parameters, prefixMatcher);
    }
    return ((CompletionSorterImpl)sorter).withoutClassifiers(f -> "templates".equals(f.getId()));
  }
private static CompletionSorter withoutLiveTemplatesWeigher(@Nullable CompletionSorter sorter,
                                                              @NotNull CompletionParameters parameters,
                                                              @NotNull PrefixMatcher prefixMatcher)