Merge "Avoid casting the configMethods bitmask to WpsConfigMethods." into main