97b00793b4
This change prevents going up the scopes once we find a substitution override. Whatever we'd find by going further is not going to be a direct overridden anymore, so it would lead to incorrect results when collecting direct overridden-s. Without this change, we get error modules in FT intellij.