Also do not call isHeader/isImpl because the returned declarations are guaranteed to be isHeader in findCompatibleHeaderForImpl and isImpl in findCompatibleImplForHeader