void (@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); }