Can we use here a helper method for sorting reference interfaces out is they exist?
The same one I mentioned before that is used in JTC.
Maybe we need another helper method for this, which would be also fine, since this could be something that is done very oftten. (We should open follow-up if such method is needed).
Originally posted by @destogl in #370 (comment)