The method was previously looping through all controls, even after finding at least one that satisfies the provided condition. This can be a bottleneck with large forms. The new version of the method returns as soon as a single control which conforms to the condition is found. PR Close #32534