I think you may create a function here: `isInheritFrom(const Interface& interface, const std::string& baseClassName)` ?