private static PsiElement dereferenceInReadAction(@NotNull SmartPsiElementPointer<?> sortedID) {
    return ReadAction.compute(() -> sortedID.getElement());
  }
private static PsiElement dereferenceInReadAction(@NotNull SmartPsiElementPointer<?> sortedID)