private string matchToBaseTypes(string currentType, Func <string, string> typeFromSignature, string chunk, string parent)
 {
     foreach (var baseType in _writer.CollectBases(parent))
     {
         currentType =
             typeFromSignature(baseType + "." + chunk);
         if (currentType != null)
         {
             break;
         }
     }
     return(currentType);
 }