PsiElement (@NotNull PsiModifierListOwner owner, @NotNull String inspectionToolID) { PsiModifierList modifierList = owner.getModifierList(); Collection<String> suppressedIds = getInspectionIdsSuppressedInAnnotation(modifierList); for (String ids : suppressedIds) { if (SuppressionUtil.isInspectionToolIdMentioned(ids, inspectionToolID)) { return modifierList != null ? AnnotationUtil.findAnnotation(owner, SUPPRESS_INSPECTIONS_ANNOTATION_NAME) : null; } } return AnnotationUtil.findAnnotation(owner, GENERATED_RELATED_ANNOTATIONS, false); }