code: private boolean isYaml()
      {
      String extension =
        getLocation() == null
        ? null
        : FilenameUtils.getExtension( getLocation().getPath()).toLowerCase();
  
      return "yml".equals( extension) || "yaml".equals( extension);
      }
docs: Returns true if this is a YAML document.