void (@NotNull PsiMethod method, @NotNull PsiClass targetClass, @NotNull PsiMethod overridden, boolean insertOverride) { if (insertOverride && canInsertOverride(overridden, targetClass)) { AddAnnotationPsiFix.addPhysicalAnnotationIfAbsent(Override.class.getName(), PsiNameValuePair.EMPTY_ARRAY, method.getModifierList()); } OverrideImplementsAnnotationsHandler.repeatAnnotationsFromSource(overridden, targetClass, method); }