CompletionSorterImpl (@NotNull CompletionSorterImpl sorter, @NotNull Weigher weigher, @NotNull CompletionLocation location) { CompletionSorterImpl processedSorter = super.processStatsWeigher(sorter, weigher, location); return processedSorter.withClassifier(new ClassifierFactory<>("stats") { @Override public Classifier<LookupElement> createClassifier(Classifier<LookupElement> next) { return new StatisticsWeigher.LookupStatisticsWeigher(location, next); } }); }