code: public static <T extends YamlConfiguration> T unmarshal(final File yamlFile, final Class<T> classType) throws IOException {
          try (
                  FileInputStream fileInputStream = new FileInputStream(yamlFile);
                  InputStreamReader inputStreamReader = new InputStreamReader(fileInputStream, "UTF-8")
          ) {
              return new Yaml(new Constructor(classType)).loadAs(inputStreamReader, classType);
          }
      }
docs: Unmarshal YAML.
  
  @param yamlFile YAML file
  @param classType class type
  @param <T> type of class
  @return object from YAML
  @throws IOException IO Exception