@Override
    void replaceWithSorted(PsiElement origin) {
      ElementContext<T> context = getContext(origin);
      if (context == null) return;
      SortableList sortableList = readEntries(context);
      if (sortableList == null) return;
      sortableList.sort();
      T contextElement = context.myElement;
      String replacement = generateReplacementText(sortableList, contextElement);
      PsiElementFactory factory = JavaPsiFacade.getElementFactory(origin.getProject());
      contextElement.replace(factory.createExpressionFromText(replacement, contextElement));
    }
@Override
    void replaceWithSorted(PsiElement origin)