code: public static ClassFileVersion of(TypeDescription typeDescription, ClassFileLocator classFileLocator) throws IOException {
          ClassReader classReader = OpenedClassReader.of(classFileLocator.locate(typeDescription.getName()).resolve());
          VersionExtractor versionExtractor = new VersionExtractor();
          classReader.accept(versionExtractor, ClassReader.SKIP_CODE);
          return ClassFileVersion.ofMinorMajor(versionExtractor.getClassFileVersionNumber());
      }
docs: Extracts a class' class version.
  
  @param typeDescription  The type for which to locate a class file version.
  @param classFileLocator The class file locator to query for a class file.
  @return The type's class file version.
  @throws IOException If an error occurs while reading the class file.