CompletionSorterImpl (@NotNull String anchorId, boolean beforeAnchor, ClassifierFactory<LookupElement> classifierFactory) { final int i = idIndex(anchorId); return enhanced(classifierFactory, beforeAnchor ? Math.max(0, i) : i + 1); }