List<PsiElement> (final List<? extends Pair<? extends PsiNamedElement, Integer>> elementsWithWeights, final boolean weightsAscending) { return getSortedElements(elementsWithWeights, weightsAscending, null); }