isSoloMember function
Whether element is the member name of the class or enum type
declared in solo.
Implementation
bool isSoloMember(Element? element, String type, String name) {
if (element == null || element.name != name) return false;
final owner = element.enclosingElement;
return owner is InterfaceElement && _named(owner, type, _solo);
}