isSoloMember function
Whether element is the member name of the class or enum type
declared in solo.
For type Solo the member of the same name of SoloLane counts too:
a lane queues its jobs by the members of the queue of a Solo.
Implementation
bool isSoloMember(Element? element, String type, String name) {
if (element == null || element.name != name) return false;
final owner = element.enclosingElement;
if (owner is! InterfaceElement) return false;
return _named(owner, type, _solo) ||
(type == 'Solo' && _named(owner, 'SoloLane', _solo));
}