public void visitTypeVariable(final String name) {
   if (type != TYPE_SIGNATURE || state != EMPTY) {
     throw new IllegalStateException();
   }
   CheckMethodAdapter.checkIdentifier(name, "type variable");
   state = SIMPLE_TYPE;
   if (sv != null) {
     sv.visitTypeVariable(name);
   }
 }