LPS-44751 Missed logic: Add keys.add(key)
LPS-44751 Source formatting