code: String typeNameQualifiedByEnclosingClass(TSTypeSyntax syntax) {
      if (syntax instanceof TSEnclosedTypeSyntax) {
        return ((TSEnclosedTypeSyntax) syntax).typeNameQualifiedByEnclosedType();
      } else {
        return syntax.typeName();
      }
    }
docs: Returns the type name, prefaced with the enclosing class name if there was one.
  
  For example, a standalone union called MyUnion will just return "MyUnion".
  If that same union were enclosed within MyRecord, this would return "MyRecord.MyUnion".