code: public static <T extends YamlConfiguration> T unmarshal(final byte[] yamlBytes, final Class<T> classType) throws IOException {
          try (InputStream inputStream = new ByteArrayInputStream(yamlBytes)) {
              return new Yaml(new Constructor(classType)).loadAs(inputStream, classType);
          }
      }
docs: Unmarshal YAML.
  
  @param yamlBytes YAML bytes
  @param classType class type
  @param <T> type of class
  @return object from YAML
  @throws IOException IO Exception