IDEA-104079 (Invalid warning about unnecessary cast)
(cherry picked from commit ba6f4f8) [CR-IC-1302]