public static bool IsDirectSubtypeOf(this ITypeSymbol symbol, ITypeSymbol type)
 {
     return(symbol.DirectlyImplements(type) || Equals(symbol.BaseType, type));
 }