In comments to getOuterLexicalRecordContext I see only this:
/// Retrieve the outermost lexically enclosing record context.
But in fact this method works a bit different:
1. If current DC belongs to record context or is record itself, then it retrieves the outermost lexically enclosing record context. Correct.
2. But. If current DC is not a record, neither it belongs to record context, then it returns current DC. Which is undocumented.
So, should we fix method comments?