[SCL-5368] Add @inheritdoc support - test missing
(cherry picked from commit 0a50a4445526671c8c927b4bed43e3f2794b7d66)
https://github.com/JetBrains/intellij-scala/pull/42 generalized; test added