protected override IEnumerable<FilteredRegistrationBase> DoCreateRegistrations(ITreeNode registrationRootElement, IStructuralMatchResult match) { var matchedType = match.GetMatchedType("type") as IDeclaredType; if (matchedType != null) { ITypeElement typeElement = matchedType.GetTypeElement(); if (typeElement != null) { yield return new ExceptRegistration(registrationRootElement, typeElement); } } }