code: public static KindName kindName(Symbol sym) {
          switch (sym.getKind()) {
          case PACKAGE:
              return KindName.PACKAGE;
  
          case ENUM:
              return KindName.ENUM;
  
          case ANNOTATION_TYPE:
          case CLASS:
              return KindName.CLASS;
  
          case INTERFACE:
              return KindName.INTERFACE;
  
          case TYPE_PARAMETER:
              return KindName.TYPEVAR;
  
          case ENUM_CONSTANT:
          case FIELD:
          case PARAMETER:
          case LOCAL_VARIABLE:
          case EXCEPTION_PARAMETER:
          case RESOURCE_VARIABLE:
              return KindName.VAR;
  
          case CONSTRUCTOR:
              return KindName.CONSTRUCTOR;
  
          case METHOD:
              return KindName.METHOD;
          case STATIC_INIT:
              return KindName.STATIC_INIT;
          case INSTANCE_INIT:
              return KindName.INSTANCE_INIT;
  
          default:
                  throw new AssertionError("Unexpected kind: "+sym.getKind());
          }
      }
docs: A KindName representing a given symbol