Validation in IDEA shows me that
But I double-checked the method and feel sure that it works as required