boolean (final String inspectionId, final String componentId) { for (LwInspectionSuppression suppression : myInspectionSuppressions) { if ((suppression.getComponentId() == null || suppression.getComponentId().equals(componentId)) && suppression.getInspectionId().equals(inspectionId)) { return true; } } return false; }