SI-7981 fix of @return statement in ScalaDoc