public static boolean hasValidationProblem(String bindingName, List<WodProblem> problems) {
boolean hasValidationProblem = false;
if (problems != null) {
for (WodProblem problem : problems) {
if (problem instanceof ApiBindingValidationProblem) {
ApiBindingValidationProblem validationProblem = (ApiBindingValidationProblem) problem;
hasValidationProblem = validationProblem.getBindingName().equals(bindingName);
} else if (problem instanceof ApiElementValidationProblem) {
ApiElementValidationProblem validationProblem = (ApiElementValidationProblem) problem;
hasValidationProblem = validationProblem.getValidation().isAffectedByBindingNamed(bindingName);
} else if (problem instanceof WodBindingProblem) {
WodBindingProblem validationProblem = (WodBindingProblem) problem;
hasValidationProblem = ComparisonUtils.equals(bindingName, validationProblem.getBindingName());
}
if (hasValidationProblem) {
break;
}
}