void (String deprecatedAnnotationFQN, String newAnnotationFQN, PsiAnnotation psiAnnotation) { if (psiAnnotation.hasQualifiedName(deprecatedAnnotationFQN)) { final PsiModifierListOwner listOwner = PsiTreeUtil.getParentOfType(psiAnnotation, PsiModifierListOwner.class, false); if (null != listOwner) { holder.registerProblem(psiAnnotation, LombokBundle .message("inspection.message.lombok.annotation.deprecated.not.supported", deprecatedAnnotationFQN, newAnnotationFQN), ProblemHighlightType.ERROR, new AddAnnotationFix(newAnnotationFQN, listOwner, psiAnnotation.getParameterList().getAttributes(), deprecatedAnnotationFQN)); } } }