public static @Nullable PsiModifierList createSortedModifierList(@NotNull PsiModifierList modifierList,
                                                                   @Nullable Comparator<? super PsiAnnotation> customAnnotationComparator,
                                                                   boolean allowAnnotationTypeBeInAnyAllowedPlace) {
    @NonNls final String text = String.join(" ", getSortedModifiers(modifierList, customAnnotationComparator, allowAnnotationTypeBeInAnyAllowedPlace));
    return createNewModifierList(modifierList, text);
  }
public static @Nullable PsiModifierList createSortedModifierList(@NotNull PsiModifierList modifierList,
                                                                   @Nullable Comparator<? super PsiAnnotation> customAnnotationComparator,
                                                                   boolean allowAnnotationTypeBeInAnyAllowedPlace)