added check for @inheritdoc