The warning could be avoided by extracting the contents of the loop into a generic method, capturing the constraint type of a single descriptor.