void (String inspectionId, @Nullable RadComponent component) { for(int i=myInspectionSuppressions.size()-1; i >= 0; i--) { LwInspectionSuppression suppression = myInspectionSuppressions.get(i); if (suppression.getInspectionId().equals(inspectionId)) { if (component != null && (component.getId().equals(suppression.getComponentId()) || suppression.getComponentId() == null)) { return; } if (component == null && suppression.getComponentId() != null) { myInspectionSuppressions.remove(i); } } } myInspectionSuppressions.add(new LwInspectionSuppression(inspectionId, component == null ? null : component.getId())); }