public static void copyAnnotations(@NotNull PsiModifierListOwner source, @NotNull PsiModifierListOwner target, String... skipAnnotations) {
    PsiModifierList targetModifierList = target.getModifierList();
    PsiModifierList sourceModifierList = source.getModifierList();
    if (targetModifierList == null || sourceModifierList == null) return;
    copyAnnotations(sourceModifierList, targetModifierList, skipAnnotations);
  }
public static void copyAnnotations(@NotNull PsiModifierListOwner source, @NotNull PsiModifierListOwner target, String... skipAnnotations)