public static HashSet <NamedTypeSymbol> TypeAndAllOuterTypeAndBaseTypeDefinitions(this NamedTypeSymbol symbol) { var result = symbol.AllOuterTypeAndBaseTypeDefinitions(); result.Add(symbol); return(result); }