public static @NotNull CompletionFinalSorter newSorter() {
    Factory factory = ApplicationManager.getApplication().getService(Factory.class);
    return factory != null ? factory.newSorter() : EMPTY_SORTER;
  }
public static @NotNull CompletionFinalSorter newSorter()