RUBY-13161: (code cleanup) Idea's warnings fixed