Collection<String> (final GrModifierList modifierList) { if (modifierList == null) { return Collections.emptyList(); } PsiAnnotation annotation = modifierList.findAnnotation(BatchSuppressManager.SUPPRESS_INSPECTIONS_ANNOTATION_NAME); if (annotation == null) { return Collections.emptyList(); } final GrAnnotationMemberValue attributeValue = (GrAnnotationMemberValue)annotation.findAttributeValue(null); Collection<String> result = new ArrayList<>(); if (attributeValue instanceof GrAnnotationArrayInitializer) { for (GrAnnotationMemberValue annotationMemberValue : ((GrAnnotationArrayInitializer)attributeValue).getInitializers()) { final String id = getInspectionIdSuppressedInAnnotationAttribute(annotationMemberValue); if (id != null) { result.add(id); } } } else { final String id = getInspectionIdSuppressedInAnnotationAttribute(attributeValue); if (id != null) { result.add(id); } } return result; }