fix: correct implements and inherits flattening, class can have both and protocol won't have inherits
fix: correct implements and inherits flattening, class can have both and protocol won't have inherits

Antondomashnev/Sourcery,Antondomashnev/Sourcery,krzysztofzablocki/Sourcery,krzysztofzablocki/Sourcery,Antondomashnev/Sourcery,Antondomashnev/Sourcery,Antondomashnev/Sourcery,krzysztofzablocki/Sourcery,krzysztofzablocki/Sourcery