void (String annotation, PsiModifierListOwner source, PsiModifierListOwner target) { Project project = source.getProject(); NullableNotNullManager manager = NullableNotNullManager.getInstance(project); String correctedAnnotation = null; if (manager.getNullables().contains(annotation) && !annotation.equals(manager.getDefaultNullable())) { correctedAnnotation = manager.getDefaultNullable(); } else if (manager.getNotNulls().contains(annotation) && !annotation.equals(manager.getDefaultNotNull())) { correctedAnnotation = manager.getDefaultNotNull(); } if (correctedAnnotation == null || JavaPsiFacade.getInstance(project).findClass(correctedAnnotation, target.getResolveScope()) == null) { correctedAnnotation = annotation; } OverrideImplementsAnnotationsHandler.super.transferToTarget(correctedAnnotation, source, target); }