Fix RubyMine warnings